WordPress.org

Forums

scoping - menus and subpages (1 post)

  1. hafman
    Member
    Posted 5 years ago #

    Hello,
    I'm using a conditional argument to place a menu on the page, it works for level 1 and 2 but breaks in 3

    elseif ( is_page('publications') || $post->post_parent == '33' ) {
        $lower = 'red';
        $icon_right = 'publications';
        $lower_menu = 'publications';
    }

    How do make this load the same menu for all levels?

Topic Closed

This topic has been closed to new replies.

About this Topic