Including Posts in custom page templates
-
I’m have a problem that I hope someone can help me with.
I have a page called news with a custom template that includes the code from the default index.php. What I want to do is have this page display the blog posts.
When I go to this page however, all I get is an empty page with a title NEWS and nothing else. Apparently what is happening is that it’s retrieving the Page entry as the posts, but not the actual posts.
You can see what I’m talking about at https://phoat.com/clients/messaritis/v4/news/
I want all the blog posts to show up on this Page but it’s not working. I know it’s something to do with the Loop. How do I tell wordpress to not use the page_id and just retrieve all the available posts?
Thanks!
- The topic ‘Including Posts in custom page templates’ is closed to new replies.