I am using the foodie theme which comes with a archive page template. I was wondering how I can show on a certain page (using the archive template?) only those post that have a specific category? Should I use the archive template at all for this or is there another way to show only posts of a specific category on a specific page?
Any help is much appreciated!!!
Its not a SP child theme.
Please post the full page template code in a Github Gist and link to it or embed it here.
The recommended way to alter the main query for page requests is to use new WP_Query in the page template itself. http://codex.wordpress.org/Class_Reference/WP_Query
However there are other options.
The only page which displays all posts from all categories is a posts page like a blog page.
Your question needs clarification.
Category archives only display posts from one category.
You must be logged in to reply to this topic.
Are you a blogger, web designer, developer, or website owner looking to generate more income?
Promote products for the largest and fastest growing online website platform as part of our affiliate program.