Posted By

paulgrenwood on 09/23/09


Tagged

wordpress category


Versions (?)

Exclude a category from the homepage


 / Published in: PHP
 

URL: http://www.designer-daily.com/10-useful-wordpress-theme-hacks-3354

  1. <?php while ( have_posts() ) {
  2. the_post();
  3. if (is_home()) if (in_category('7')) continue;
  4. ?>

Report this snippet  

You need to login to post a comment.