Archive Template

Community Forums Forums Design Tips and Tricks Archive Template

This topic is: not resolved

This topic contains 1 reply, has 2 voices, and was last updated by  braddalton 3 months, 1 week ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #107020

    aovoko
    Member
    Post count: 6

    Hello,

    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!!!

    A.

    http://stereomintpoppy.com
    #107024

    braddalton
    Participant
    Post count: 9432

    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.


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.