Support » Themes and Templates » Custom Post Type Menu Positions?

  • I have a number of them and I am just trying to list them in a logical order but the “Post” and “Media” buttons constantly butt their way in between my custom post types regardless of how I have them ordered. This is the code I am using with each registered custom post type, I’ve tried a lot of different combinations of numbers to see where they show up, but like I said the Post and Media buttons always butt their way in, any tips?

    'menu_position' => 4,

    'menu_position' => 5,

    'menu_position' => 6,

Viewing 4 replies - 1 through 4 (of 4 total)
  • Actually all of the standard WordPress buttons have this problem, the only way I’ve found to keep them in a logical order is to register them to position 50 and they all appear below, Posts, Media, Links, Pages, and Comments but at least they are not broken up and are in order.

    Nobody else ever have this problem?


    For future readers, look here:

    (integer) (optional) The position in the menu order the post type should appear.

    Default: null – defaults to below Comments

    5 – below Posts
    10 – below Media
    15 – below Links
    20 – below Pages
    25 – below comments
    60 – below first separator
    65 – below Plugins
    70 – below Users
    75 – below Tools
    80 – below Settings
    100 – below second separator

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