#4948 closed enhancement (worksforme)
Category Parent/Child Tree
| Reported by: | iacas | Owned by: | |
|---|---|---|---|
| Priority: | low | Milestone: | |
| Component: | Taxonomy | Version: | 2.2.3 |
| Severity: | minor | Keywords: | |
| Cc: | Focuses: |
Description
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.
Change History (8)
#6
@
17 years ago
- Component Template → Taxonomy
- Priority normal → low
- Severity normal → minor
isn't this what child_of does in get_terms() et al?
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
No Patch. Moved to 2.7