Ok so i have a custom post type of ‘projects’ set up and I would like to use the WP_NAV_MENU arguments to modify the output of my sub-menu. I want to display the “country” (set up as a tag) in front of the project name, but within the link.
I currently have this:
I know this will add it onto all the nav items, but I added css to not display the span unless it’s within a submenu.
But I’m not getting the correct result, and i know this is probably because it’s struggling to find the posts and thus can’t find any tags. But not entirely sure the best way to approach this. This result is instead I’m just getting an output of ‘1’ on all items.
Ideal I’d like to output something like this:
Tag Here – Project Name
Tag Here – Project Name
Tag Here – Project Name
Tag Here – Project Name