Creating a new page with a different loop. How?
-
I’m trying to create a new page within which I can run a different loop from the one on my homepage. I think I’m able to manage the loop but I’m struggling with something more basic.
I began by creating a new page titled “Also”, and put a bit of test text inside the “Page content” box. Then I saved page.php as a new page template (with the name “Also”), put the required 5 lines of code at the top (template name etc), and then selected it as a template for the page “Also” in “Page options” in the WP admin area.
The template is displaying correctly except that what I’m seeing in the content section of this page is the page title and the bit of test text. The standard WordPress loop seems to be having no effect.
What should I do to run a loop within this page template?
- The topic ‘Creating a new page with a different loop. How?’ is closed to new replies.