hi, i’ve made a cpt-ui / acf setup with elementor to create a portfolio. i have created an archive and a portfolio item detail layout.
when the portfolio item detail post is selected, i would like for the secondary navigation item to highlight based on the author of the portfolio item post. is this possible or have i set this up poorly.
It depends on if the menu item has an HTML class that relates it to the current item being viewed.
For example, WP adds the current-menu-item class to menu items when we’re viewing that page.
I took a quick look and I didn’t see any classes that would help really. There is a postid-xx class where xx is the ID of the post. I suppose you could use CSS to target specific items, but it would be a big manual process.