• Hi,

    I am trying to display a secondary menu on a particular page only. I have used the below code in my child theme’s page.php as below:

    The page_id that I want the secondary menu to appear is 560

    <?php
    if (is_page(560)) {
    wp_nav_menu(array(‘theme_location’=>’secondary’, ‘menu_class’=>’shop-sub-menu’));
    }
    ?>

    This doesn’t seem to be working. Any help would be much appreciated.

    Thanks

  • The topic ‘is_page not working for theme twenty fourteen’ is closed to new replies.