Essentially what I am hoping to replicate is something like the “current-menu-item” class that is applied to WP Menus.
My client is wanting to use Tags as a sub-nav, and I’ve managed to get the tags for the category output as an unordered list, but now if someone selects the tag “Tag One”, I’d like to have that particular tag to highlight as the currently selected Tag.
It would be extra super cool if this could also work with the output generated by “the_tags” attached to the post as well.
I hope this makes sense, and thanks!
Cheers,
John
Add something like this to the functions file:
This won’t work by itself, but it will be a good start for getting the right information to the right place.