Treehouse: Grow your CSS skills. Land your dream job.

understanding wordpress query

  • # April 4, 2012 at 11:41 am

    so im working on making my first wordpress theme/site and I have not split my index.php file into other different parts
    I created the basic loop and I went to try it out.
    magically when i click a post, (it uses index.php to display it because I have no single.php)
    it shows just that post and all other posts disappear.

    how does it do that when the index page clearly has a loop to show all posts? does the php somehow know that I am trying to view one post and it disables the loop?

    how!? what is happening behind the scenes? does wp_query check the slug?

    # April 4, 2012 at 1:50 pm

    That’s just WordPress core functionality, I believe.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.