Sunday, 11 October 2015

Function For Calling WordPress Menu


function callMenu($id)
{
    $args = array(
        'menu' => $id,
        'container' => 'div',
        'container_class' => 'common',
        'container_id' => '',
        'menu_class' => 'menu',
        'echo' => true,
        'fallback_cb' => 'wp_page_menu',
        'before' => '',
        'after' => '',
        'items_wrap' => '
    %3$s
', 'depth' => 0, 'walker' => '' ); wp_nav_menu($args); }

No comments:

Post a Comment