[wp-trac] [WordPress Trac] #4948: Category Parent/Child Tree

WordPress Trac wp-trac at lists.automattic.com
Mon Sep 10 19:07:45 GMT 2007


#4948: Category Parent/Child Tree
-------------------------+--------------------------------------------------
 Reporter:  iacas        |       Owner:  anonymous 
     Type:  enhancement  |      Status:  new       
 Priority:  normal       |   Milestone:  2.4 (next)
Component:  General      |     Version:  2.2.3     
 Severity:  normal       |    Keywords:            
-------------------------+--------------------------------------------------
 Short of building my own recursive function, I'd like WordPress to support
 a method to get a parent/child category ID tree. One function
 (get_category_parents) already does this except with the names of the
 categories. Another function, cat_is_ancestor_of in category.php appears
 to be usable, but I've been unable to get it to work.

 In short, I'm trying to solve the problem of figuring out what top-most
 parent category a blog entry belongs to so that I can do some various
 things with CSS, sidebars, etc.

 http://nslog.com/2007/09/09/wordpress_category_parents

-- 
Ticket URL: <http://trac.wordpress.org/ticket/4948>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list