Posted By

gd6d on 12/24/09


Tagged

wordpress category


Versions (?)

New Category Templates in WordPress 2.9


 / Published in: PHP
 

URL: http://wpengineer.com/new-category-templates-in-wordpress-2-9/

  1. Previously it was necessary to integrate the following query:
  2.  
  3. if ( is_category('microblog') ) {
  4. // here the output or integration of the stylesheet for category <em>Microblog</em>
  5. }
  6.  
  7. In WordPress 2.9 it's sufficient to use the according template category-microblog.php to use this template, if you are in the category of the slug microblog. Alternatively you can still use ID, which can be changed but with the name of the slug is the identity unique and easy.

Report this snippet  

You need to login to post a comment.