Custom Post Type menu within another Custom Post Type?

Support MB Custom Post Type Custom Post Type menu within another Custom Post Type?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #9895
    MauroMauro
    Participant

    Hello! I want to move a custom post type within another custom post type menu, i.e.:

    • Posts
    • Pages
    • Hotels (CPT)
      -- All Hotels
      -- Add New Hotel
      -- Taxonomy 1
      -- Taxonomy 2
      -- Rooms (CPT)

    Is this something I can do in the code?

    #9921
    MauroMauro
    Participant

    It appears this is possible only through code (not within the meta box builder) by specifying show_in_menu => 'edit.php?post_type=[your_custom_post_type_slug]'

    Reference: https://codex.wordpress.org/Function_Reference/register_post_type

    #9930
    Anh TranAnh Tran
    Keymaster

    Hi,

    Yes, that's possible only through code. The MB Custom Post Type plugin allows you to put the CPT menu in the WordPress's main menu only. I'll try to make an update to support that.

    #9973
    Anh TranAnh Tran
    Keymaster

    Hi Mauro,

    I've just updated the MB Custom Post Type on Github to support moving the CPT to be a sub-menu of another existing menu. Please try it and let me know how it goes. The new version will be available on wordpress.org soon.

    https://github.com/wpmetabox/mb-custom-post-type/

    Updated: New version has been released. Please update and let me know what you think 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Custom Post Type menu within another Custom Post Type?’ is closed to new replies.