[wp-hackers] Viewing a category shows all of that category's children.

Mark Jaquith mark.wordpress at txfx.net
Tue Dec 14 09:32:29 UTC 2004


The default behavior in WordPress with regards to categories with child 
categories (subcategories) is to include the children when viewing the 
parents.

If you have a category "foods" and have two subcategories under it "ice 
cream" and "pizza," viewing "foods" will show the posts in "ice cream" 
and "pizza" as well.

I've made a little tutorial (very little, you only need to comment out 
three lines) explaining how to change this behavior, such that only the 
category you specify will be shown:
http://txfx.net/2004/12/14/wordpress-exclude-subcategories/

What are your thoughts on having this behavior be an option?  "Show 
subcategories of requested category [X]" (obviously in more 
user-friendly language).



More information about the hackers mailing list