WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Walker_Nav_Menu error (2 posts)

  1. kierzniak
    Member
    Posted 3 years ago #

    When i try to overwrite walker argument in

    wp_nav_menu()

    function wordpress display error

    Undefined property: stdClass::$menu_item_parent

    I thought that is the problem with class which extend Walker_Nav_Menu, but when I try to do something like that:

    wp_nav_menu( array('walker' => new Walker_Nav_Menu() ) );

    I have this same error.

  2. kierzniak
    Member
    Posted 3 years ago #

    I must have defined any menu in Menu section. I haven't have, so I have errors.

Topic Closed

This topic has been closed to new replies.

About this Topic