Return to Snippet

Revision: 21929
at December 24, 2009 06:01 by gd6d


Initial Code
Previously it was necessary to integrate the following query:

if ( is_category('microblog') ) {
	// here the output or integration of the stylesheet for category <em>Microblog</em>
}

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.

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

Initial Description

                                

Initial Title
New Category Templates in WordPress 2.9

Initial Tags
wordpress, category

Initial Language
PHP