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.
Brad Dalton has written 1910 tutorials & 4000+ Code Snippets for Genesis & WordPress – Not For Hire.
You must be logged in to reply to this topic.
Subscribe to get early access to new themes, discounts and brief updates about what's new with StudioPress!