Thesis: exclude category from blogpage


/ Published in: PHP



Copy this code and paste it in your HTML
  1. /*--------------------------------------------------*/
  2. /** categories not in regular homepage loop teaser */
  3. /*--------------------------------------------------*/
  4.  
  5. function exclude_front_page() {
  6. global $query_string;
  7. if (is_home()) {
  8. query_posts($query_string.'cat=-3,-80,-101');
  9. }
  10. }
  11.  
  12. add_action('thesis_hook_before_content', 'exclude_front_page');

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.