Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #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:

    • This topic was modified 3 years, 10 months ago by  aftaab.

    Hi aftaab!

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



    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.



    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.