Adding a status to one nav menu link?
-
Say I have a link in the nav menu that I want to append a (X) to, where X is a number that’s different for different users when they are logged in. How can I do that?
Now, in header.php, I know how to get the value of X, and if I turned the whole nav menu into hard-coded html instead of a call to
wp_nav_menu( array( 'theme_location' => 'primary' ) )
then I could just insert<?php echo($foo); ?>
into the right spot of the html.But if I want to keep the current dynamic nav menu, is there a way to tell it to append the number onto a particular menu item?
- The topic ‘Adding a status to one nav menu link?’ is closed to new replies.