How to add a list of posts to a page?
-
I would have thought this would be a cinch. I simply added the WordPress loop to a static page and voila! Except, no voila.
The only thing it picks up is the title of the page, with no content and no excerpt. So, for instance, if you want to have a list of posts on the “About Us” page, all I get is a single post titled “About Us.” Clicking it is recursive: it simply takes you back to the same page.
The really curious thing is that I do have a list of posts in the sidebar. I copied the same code into another file and loaded that as an include, and it still gives me a single post with the page title and nothing else.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How to add a list of posts to a page?’ is closed to new replies.