‘Current’ category highlight for a single post in multiple categories
-
Hi,
I have posts that are assigned to more than one category.
I have successfully coded a side-nav of categories to correctly highlight the current category for a single-cat post.
However, where a post appears in more than one category, the ‘current’ category highlight is always the same default one, and not necessarily the one of the category from which I was viewing. This is particularly annoying, as I have coded a list of ‘Other posts for this category’ to appear when viewing a post’s details, and so this is often the wrong listing for the relevant search.
Will I have to create some code that detects the category I was in from which I clicked the ‘Read more’ link? (And maybe passed that as a parameter?)… Might be a bit beyond me?
Assistance appreciated, thanks.
- The topic ‘‘Current’ category highlight for a single post in multiple categories’ is closed to new replies.