Log1x/navi

Navi for taxonomy terms

Closed this issue · 3 comments

Would it be outside the scope for Navi to build hierarchical WP term objects as well?

We run into a similar pain point using get_terms or get_categories and it would be awesome to have an object structured the same way for taxonomies.

Log1x commented

I'm kind of leaning towards this being something you would just return as an object yourself in a Composer or something. 🤔

The pain-point for navigation is the fact that WordPress doesn't provide any way to return it nested with children alongside requiring an ugly "internal" function _wp_menu_item_classes_by_context to reinstate classes, attributes, etc. making it kind of an ugly situation compared to just setting it.

It was actually something I had to rack my brain over for quite awhile despite Navi being a rather simple code base.

Log1x commented

Hahaha. It immediately came to mind.