I have 2 separate forums in 2 separate sections of a website. Adding shortcode to a child page under each top-level parent page, current-page-ancestor allows hiliting of the correct top level nav item.
However, as soon as a topic or reply is clicked, the ancestor/child relationship is lost, and the navigation item is un-hilited. Slugs for topics from one forum look identical to slugs from the other (except for topic name, of course).
If I only had one forum, it would be fairly simple to make all topics and all replies hilite the same nav item, but with 2 forums in separate sections, I need to distinguish between topics and replies that belong with one forum or the other. Is there a conditional that allows me to determine which forum a topic or reply is associated with?