Welcome to WebmasterWorld Guest from 54.226.133.245

Forum Moderators: ergophobe

Message Too Old, No Replies

Wordpress | Category-Specific Templates

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

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Mar 12, 2001
posts:1150
votes: 0


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 July 5, 2010 (gmt 0)

Senior Member from US 

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

joined:Mar 31, 2002
posts:7575
votes: 0


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 July 19, 2010 (gmt 0)

New User

5+ Year Member

joined:July 16, 2010
posts:11
votes: 0


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