Welcome to WebmasterWorld Guest from 54.226.246.160

Forum Moderators: ergophobe

Message Too Old, No Replies

Wordpress | Category-Specific Templates

     

jk3210

6:34 pm on Jul 4, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



h**p://example.com/category/medical/doctors/surgeons/

In Wordpress, if I create a category-specific template for the category "medical," will that template also be applied to posts I create in sub-categories "/doctors/" and "/surgeons/," assuming there are no other category-specific templates for those sub-categories?

lorax

10:55 am on Jul 5, 2010 (gmt 0)

WebmasterWorld Senior Member lorax is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



I don't believe WordPress provides function tags for determining child categories. BUT you could write your own logic to determine these.

poiuy

8:16 am on Jul 19, 2010 (gmt 0)

5+ Year Member



Wordpress have this function, but you should install a plugin.
 

Featured Threads

Hot Threads This Week

Hot Threads This Month