Welcome to WebmasterWorld Guest from 184.73.126.70

Forum Moderators: ergophobe

Message Too Old, No Replies

Wordpress | Category-Specific Templates

   
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?
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.
8:16 am on Jul 19, 2010 (gmt 0)



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