Posted By

psteinweber on 04/28/11


Tagged

wordpress category loop thesis exclude


Versions (?)

Thesis: exclude category from blogpage


 / Published in: PHP
 

  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  

You need to login to post a comment.