Pods UI submenus

This topic is: not resolved

This topic contains 2 replies, has 2 voices, and was last updated by  caroig 1 year, 9 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #166059

    caroig
    Participant

    I’ve just created my first for Pods UI plug-in, the code is below, more or less a copy of the MBN example. I’d expect from the add_object & add_submenu options, to get a main admin menu item of Caza Mayor and a single sub-menu of Cotos. What I actually see is two submenus – Caza Mayor and Cotos – the Cotos option works fine, I just don’t understand why the Caza mayor submenu is present.

    alt text

    I guess it’s not really a pods problem, rather a problem with my plugin code, but I’m not really where to check next.

    #166060

    sc0ttkclark
    Keymaster
    Post count: 807

    Your sub-menu code is set to point at a different identifier than the parent one, so it sets up additional sub-menus automatically. This is WP core, so more information can be lifted from their documentation on add_object_page

    #166061

    caroig
    Participant

    Thanks for the pointer. It wasn’t until I’d added the 2nd submenu that it all became clear.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

Wordpress Cloud Hosting