Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #212664

    I like the way the Post Timeline looks, but have been asked if I can specify select categories to display instead of all of them. Is this possible? Here is a link to the page I want to make the changes to: http://bit.ly/1f2bMBJ

    • This topic was modified 11 months ago by  aftaab.
    #212676

    Hi aftaab!

    Open up and replace /wp-content/themes/choices/template-post-timeline.php

    
    query_posts(array('posts_per_page'=>-1));
    

    with

    
    query_posts(array('posts_per_page'=>-1,'category__in' =>array(20,31,40) ));
    

    Instead of 20,31,40 insert the category ids you want to show/query and separate them with a comma. If you want to query nearly all categories you can also use this code

    
    query_posts(array('posts_per_page'=>-1,'category__not_in' =>array(20,31,40) ));
    

    but now the categories 20,31,40 will be excluded and all other categories are included in the query.

    Cheers!
    Peter

    #212981

    Worked like a charm. Thanks!

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

The topic ‘Is there a way to specify what categories display in Choices post timeline’ is closed to new replies.