Snippets repository for WordPress developpers

Browse
// into any page or template
<?php
if ( has_nav_menu( 'main' ) ) {
  wp_nav_menu(
    array(
      'container' => 'nav',
      'container_class'	=> 'main-menu',
      'items_wrap' => '<ul>%3$s</ul>',
      'menu_id'	=> '',
      'menu_class' => '',
      'theme_location' => 'main'
    )
  );
}
?>

Warning: Trying to access array offset on null in /home/clients/7f7a8d8eb6e40c50d3548b06c548734d/web/wp-includes/class-wp-query.php on line 3766

Categories

Tags