I just figured out the menu_position parameter it seems like you can place the menu of your custom post type almost everywhere. Except above the Posts menu!
How can I accomplish that?
|
I just figured out the menu_position parameter it seems like you can place the menu of your custom post type almost everywhere. Except above the Posts menu! How can I accomplish that? |
|||
|
|
|
Positions for Core Menu Items
Parameter description for "menu position"
|
||||
|
|
|
This is a bug in WordPress. Please see this thread in Trac: http://core.trac.wordpress.org/ticket/14755 |
||||
|
|
|
The new JetPack Plugin places its menu link immediately below the Dashboard link. It does so by setting its menu order to 0, by filtering the $menu_order array:
Out of curiosity, what would happen if you tried 0 as menu_position? |
|||
|
|
|
I've used 'menu_postion' => 0, 1,2,3,4. Doesn't matter really. If you play around with it you can easily figure it out. Using 'menu_position' => 1 should place it below the Dashboard menu item above the separator thing. 0 Should place it above the Dashboard |
|||
|
|
|
On the same link you linked, it reads:
So, if you set A position of |
|||||||||||
|