the_category() should include depth
|Reported by:||jordash56||Owned by:|
I've noticed a lot of category functions don't have depth attributes built into them.
The default usage of the_category() results in poorly formatted category listings for more complicated category structures (using Wordpress as a CMS).
Here's an example: http://bestappsrated.com/android-apps/
If you look at some of the post listings, you'll notice each category is duplicated, that's because their is 3 levels (depth) to that post.
If there was a depth option for the the_category()
for example allowing: the_category(', ', 'depth=2')
It would completely circumvent that problem, And allow a huge amount of flexibility and greater use of Categories withing wordpress, without forcing themer writing custom loops and for statements.
Here's another article where there's frustration that this function (and similar category functions) doesn't have a depth parameter: http://www.wpbeginner.com/wp-themes/how-to-display-only-parent-category-in-your-wordpress-post-loop/
Change History (5)
- Milestone Awaiting Review deleted
- Resolution set to wontfix
- Status changed from new to closed