Find answers, ask questions, and connect with our
community around the world.

Forums Forums Web Design WordPress In category.php isn’t it strange that $post variable is filled with first post shown?

  • In category.php isn’t it strange that $post variable is filled with first post shown?

    updated 3 years, 1 month ago 0 Member · 1 Post
  • Deborah

    Member
    September 2, 2019 at 6:03 am

    I am just developing a custom theme and I find it weird that in category.php $post variable is actually filled with first post shown in that category? This is expected behaviour? Shouldn’t it be empty, unless we get into loop? I would find that normal if it is inside loop like after this, like all other posts inside loop but it is not – by hq overview shkico – –

Viewing 1 of 1 replies
Reply to: Deborah
Your information:

Cancel
Original Post
0 of 0 posts June 2018
Now