WordPress.org

Ready to get started?Download WordPress

Forums

Custom Post Type Menu Positions? (5 posts)

  1. alanchrishughes
    Member
    Posted 3 years ago #

    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,

  2. alanchrishughes
    Member
    Posted 3 years ago #

    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.

  3. alanchrishughes
    Member
    Posted 3 years ago #

    Nobody else ever have this problem?

  4. alanchrishughes
    Member
    Posted 3 years ago #

    .

  5. jereruira
    Member
    Posted 2 years ago #

    For future readers, look here: http://codex.wordpress.org/Function_Reference/register_post_type

    menu_position
    (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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.