The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End understanding wordpress query

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #37495

    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?


    That’s just WordPress core functionality, I believe.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Back End’ is closed to new topics and replies.