WordPress page template as index
-
Hi!
I have a problem while editing a theme: I edited the index page and I replaced it with a custom gallery home page through a new index.php in a child theme.
Now, I would like to have the old index.php in a wordpress page, so I created a new blog template page with the same code of index.php. The problem is that the_loop in the index.php doesn’t loop through all the posts, but I have to use query_posts() before the loop.
But, if I use query_posts(‘posts_per_page=X’), both pagination and more tag don’t work.What is the difference in using a page as php page or use it as a template?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘WordPress page template as index’ is closed to new replies.