[resolved] Menu Nesting Permalinks Incorrect? (3 posts)

  1. Sayontan Sinha
    Posted 6 years ago #

    I was playing around with the Beta 2 version on a test blog and I noticed this while making my theme support the navigation menu functionality:

    1. In my blog I have the following page structure: Parent Page, Child 1 of Parent, Child 1.1 of Child 1. The pages have permalinks http://my-url/parent-page, http://my-url/child-1-of-parent and http://my-url/child-1-1-of-child-1.
    2. I went ahead and created a menu and defined the nesting appropriately for these pages.
    3. When I print this menu, however, the permalinks change to http://my-url/parent-page, http://my-url/parent-page/child-1-of-parent and http://my-url/parent-page/child-1-of-parent/child-1-1-of-child-1 respectively. In other words, the child pages' slugs are getting prefixed with the parent pages slugs.

    I did check the $menu_item object to verify and indeed, the "url" attribute has the modified slugs as opposed to the original permalinks.

    Is this deliberate or is this a bug?


  2. Sayontan Sinha
    Posted 6 years ago #

    Any ideas anyone? Is this a bug?

  3. Sayontan Sinha
    Posted 6 years ago #

    Sorry, my mistake. The menus are behaving as they should.

Topic Closed

This topic has been closed to new replies.

About this Topic