I need wp_nav_menu to show only if it has a menu item inside. Otherwise the menu as well as its wrapper should not appear at all. I thought this could have been done with the parameter $fallback_cb, if it is left empty. But it didn't work. Maybe it's possible to put something like
if ( !empty () ); around it. But I don't know how to call the menu for an existing item. Does somebody know how to do?
My menu looks like this:
<?php wp_nav_menu( array( 'theme_location' => 'pin', 'fallback_cb' => '', 'container' => 'div', 'items_wrap' => '<ul><li class="start">++</li> %3$s <li class="end">++</li></ul>' ) ); ?>