Official Advertising Sponsors

Sunday, February 8, 2009

WordPress › Support » Have a page template that includes posts?

WordPress › Support » Have a page template that includes posts?:

Is it possible to have a page template that can also fetch posts? I know that's not the clearest explanation. What I want to have is a page template that will display the page's title and content, but can also then fetch posts in a specified way (in my case it's fetching a specific category of posts)and display them underneath. Is this possible?



You can make a page template that works just like the main index page and then add a query for that particular category so only those posts show.
For example, if you make a new template using the code from you main index template you can add something like the following



insert it right before the following loop starts