Home Forums Xi Theme Discussion & Support Exclude category from blog template

This topic is: not a support question

This topic contains 1 reply, has 2 voices, and was last updated by  themeweaver 3 years, 9 months ago.

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

    Serg Barreto
    Participant
    Post count: 5

    I would like to exclude a particular category when using the blog template to display all posts on a page. There are just too many posts in this category so I’d like to display it separately on the homepage.

    I found this thread (http://themeloom.com/forums/topic/exclude-category-from-show-posts-widget/), which says it’s not possible to exclude a category from the show posts widget. Does that also apply to the blog template?

    #3673

    themeweaver
    Keymaster
    Post count: 730

    The template that comes with the theme only lets you filter by category. But, you could create a new template file to do what you want.

    1. Make a copy of the blog template.
    2. Change its filename and also the name in the comments at the top of the file.
    3. Edit the query code to do what you want (refer to WordPress codex http://codex.wordpress.org/Function_Reference/query_posts#Exclude_Categories_From_Your_Home_Page)

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

You must be logged in to reply to this topic.