Support » Themes and Templates » Highlight menu item based on current post.

  • Hello. I’d like to highlight an item on the wordpress navigation menu (these are all pages) based on the current post. For instance, I have 5 pages in the nav menu which are 5 people (authors), what I want to do is that when you open a post, if it’s written by author #1, then keep the menu #1 highlighted. I don’t have any clue as how to do this, all the other information regarding highlighting is for current pages or post categories, which do not interest me.

    If it can’t be done by author ID, any other way is fine, like adding a custom field to each post maybe?

    Well, thanks anyway, I’d really like to get this done since our blog is almost finished.

Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Highlight menu item based on current post.’ is closed to new replies.