I created my own type of message called "command" and added a link to the archive page in the WP menu. As soon as the user clicks on him, he is shown to all team members, and the current page is highlighted in the menu. But when I click on an individual team member, his page opens, and the "Team" in the menu no longer stands out, and it should be.
Here's how it displays when the command page opens:
<li id="menu-item-17" class="menu-item menu-item-type-custom menu-item-object-custom current-menu-item active"> <a href="http://localhost:8888/site/team/">Team</a> </li>
and this is what I get on the menu when I open a separate member page:
<li id="menu-item-17" class="menu-item menu-item-type-custom menu-item-object-custom"> <a href="http://localhost:8888/site/team/">Team</a> </li>
Since I'm not a PHP developer, I don't know how to make it work, any suggestion would be highly appreciated :)
source share