I would like to show shortcode output in menu like below.

enter image description here

How can I do that ?

1 Answer 1


Please add below line in your functions.php file

add_filter('wp_nav_menu_items', 'do_shortcode');

This line will execute do_shortcode to your menu items and if there is any it will execute the shortcode.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.