• Resolved ptrv

    (@ptrv)


    In version 1.1.3 I was able to select a menu and leave the option for Parent Menu Item ’empty’ (leave it at “Select Menu Item”). This way a new CPT was added to my selected menu. I don’t want it to be added to a specific menu item.
    Now in version 1.1.4 when I select a menu, a parent menu item gets auto-selected. I can’t leave it empty anymore. The result is that a new CPT turns into a subpage, which I don’t want.
    Is there a solution for this, or am I overlooking something?

    Thanks, Peter

    https://www.ads-software.com/plugins/custom-post-type-auto-menu/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Ken Dirschl

    (@badfun)

    Hi Peter,
    Interesting. So you want to add a cpt to the parent menu, but not make it a sub-menu item?

    In the last version a number of bugs were cleaned up, so I guess your use of it got swept up in there too. I hadn’t really thought of using it to populate menus themselves.

    I’ll let you know if I figure anything out.
    Ken
    ps: sorry for the late reply. For some reason I don’t seem to get these WP notices.

    Plugin Author Ken Dirschl

    (@badfun)

    Hi Peter,
    Try the latest version 1.1.7 – you’ll find the capability is there. I tested it adding cpts to the main menu, and then even adding other subsequent cpts to the one I had just added.
    Ken

    Thread Starter ptrv

    (@ptrv)

    Hi Ken,
    Thanks for your reply but I will try to explain my problem a little better:
    I create a CPT “Test” and a menu “Test”, which has Page1 and Page2 (the menu has to have at least one page or I can not select it in the CPT Auto Menu as described in earlier topic). When I create a new page in the CPT I want it to become Page3.
    In the newer versions (> 1.1.3) when I select menu “Test”, it auto-selects Page1 as a Parent Menu Item. I can not leave it blank (“Select Menu Item”) like I did before. Therefore a new page becomes a subpage of Page1, and not a Page3.
    I downgraded to 1.1.3 to still be able to do this but that version has the “&-problem”.
    I hope you now have a clearer idea of what my problem is.

    Thanks, Peter

    Plugin Author Ken Dirschl

    (@badfun)

    Hi Peter,
    I believe I understand, and there is a work around (and perhaps I will implement this as a feature down the road).

    When you first select a menu, an ajax call will pull in the items that are in that menu, and you cannot see the ‘Select Menu Item’ heading anymore. However, after you have saved an item, it will reappear, and you can then choose ‘Select Menu Item’ and save again. Now the next cpt you add will not be a sub-menu item.

    Try it and let me know how that works out. (ps: I am testing this on the latest version 1.1.7).
    Ken

    Thread Starter ptrv

    (@ptrv)

    Yes, it works. Should have tried that myself.. Thanks a lot Ken!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘No Parent Menu Item?’ is closed to new replies.