How does index.php differ from pages.php
-
Still curious about how WordPress treats an index.php file versus a page.php file. As far as I can tell, in a simple theme there is no page.php file so the loop is in index.php and runs every page on the site.
In a more advanced theme there is an index.php file and a page.php file. From experimenting it appears that:
– index.php is needed to make the Theme appear in the Dashboard
– the content on this page is what you will see if you click on the Theme title in the Dashboard & in preview
– otherwise pages.php displays content on the websiteIs this correct? If so, it seems redundant to have a separate page.php file.
Thanks
Charles
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How does index.php differ from pages.php’ is closed to new replies.