• Resolved wpdogz

    (@wpdogz)


    Hy,

    I would like to have multiple PTs under one Admin menu. however, srubbing google search and youtube I can not find an solution to this with CPT UI only. Is there a way?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello,

    Thanks for the feedback!

    The Post Type UI is basically an interface of the native register_post_type() function (See documentation).

    As explained in the documentation, you can use the show_in_menu parameter to define the parent menu. For example tools.php to display the post type under the “Tools” menu.

    Hope it helps!

    Have a nice day!

    Regards.

    Thread Starter wpdogz

    (@wpdogz)

    Hello and thank you for the answer,

    so that would mean that I use the name of my Custom Post Type (for instance general-topics) and add .php to it? So I would use general-topics.php in show_in_menu in order to have it as a submenu there?

    Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello,

    Please check the WP documentation I linked. As explained:

    ‘some string’ – If an existing top level page such as ‘tools.php’ or ‘edit.php?post_type=page’, the post type will be placed as a sub menu of that.

    You have to use the last part of the admin menu URL without the domain.com/wp-admin/. For example: edit.php?post_type=page.

    Hope it helps!

    Regards.

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

The topic ‘Create mulitple PTs under one admin menu’ is closed to new replies.