There are two ways to affect where CPTs appear in the admin menu: using menu_position
and controlling when the CPTs are registered.
Using decimal numbers hasn’t been reliable in my experience; using an integer like 21
, 22
, etc. has been more effective. If you have so many CPTs there aren’t enough integers, the other trick is to register the one you want first first, then register the second, then register the third. By controlling the code order, and keeping the menu_position
the same for all of them, WP will put them in the order you register them in.
Related Posts:
- Use WordPress page instead of post type archive
- Customize Edit Post screen for Custom Post Types?
- Truncating custom fields
- Display Authors Comments on Profile Page
- Hide View and preview from custom post types
- How to add an option page to custom post type?
- WP Admin default view mode for Custom Post Type
- How can i add a metabox to pull list of custom posts (any two) on edit or add post screen?
- wp_update_post on specific custom post type
- custom post type upcoming post and past post
- Query to get the author who having maximum number of post (custom post type)
- What is better: Custom Fields vs Custom Taxonomies with Terms for perfomance, scalability and better user experience
- 404 Error with Custom Post Types and Taxonomy
- Add $more_link_text parameter to the_excerpt()
- Menu highlight custom post type archive
- Meta Box Only in CPT Edit Page, Not in Add New
- wp_list_pages(); Change output of hyperlink
- How to determine if custom post type showing on archive templates
- Plugin for custom posts and fields [closed]
- Remove rows in the manage post/page view
- Bizarre Permalinks Issue: 404 Errors Everywhere
- Undefined Variable – Custom Post Type Meta
- shortcode to show custom post types by category
- Custom post type archive page template
- filter custom post type by meta key in dashboard
- Use a hierarchical custom post type for a main blog and subblogs?
- get custom post type
- WordPress Custom Fields Won’t Save
- Getting meta in editor plugin, and event triggering issue
- Display a grid of taxonomy terms at root taxonomy page
- Display Custom Taxonomy Alphabetically
- Only show post if Author matches Logged in User
- posttype/taxonomy/term archive page 404 error
- How to add attributes to taxonomies that may be different from post to post?
- Add additional field to custom post_type
- Is it possible to filter the display name for post formats for display in the Formats meta box?
- Conditional for a Single Post That Belongs to a Category?
- Creating my own portfolio custom-type
- Dynamically output a class to an anchor tag depending on what tag is chosen
- Sort a custom post with ACF: Date Picker & Display Featured!
- Strip Characters From Tag Name
- Query not work for current taxonomy
- Create short URL with auto 301 redirect
- Custom Post 404
- Replicating category/location page heirarchy
- 404 Page Not Found on /Page/2/ on Tag Page
- How Can I Remove Custom Post Type Slug From URL
- Modifying WP_Title For Custom Post Type
- Types plugin custom post add_action hooks
- Copy/Move selected taxonomy terms to another taxonomy for posts
- Non-permalink custom taxonomy not found
- Looking up custom taxonomy IDs by name
- Is there a hook between clicking on “Add new” and the edit screen of a new post?
- How to use get_post_custom_values to return the value of an array
- Not Able to Add New Class To CPT Attachment Image
- How can I create a button that when clicked populates a div with a list of foods that are checked as a certain type of ACF?
- Custom Post Type archive page listing a 404 or single post
- post type => ‘any’ not applied my custom queries
- Loop through a specific parent category
- Register CPT if Jetpack Portfolio is not active and only once
- Post that populates itself (almost) automatically using data from imported excel file
- Show “Republished” badge when Post Date is manipulated
- How to show data content from single page which is from custom post type?
- I broke it! Custom post type archive gets redirected to home
- How to hook save-post function to use taxonomy term in post-slug?
- Main site single-property.php design, as homepage of a multisite
- Custom post type and taxonomies structure
- Can’t seem to filter wp_query by current category ID
- why custom post archive gives always no more than 10 posts despite of paging settings?
- You tube videos Appear Different Dimension
- Custom url for custom post types
- Permalink clashing with Custom Post Type rewrite rule
- Organizing Custom Post Type Archive Template
- how to do i fix this problem Your backup folder MIGHT be visible to the public
- Single and Archive Pages with Custom Post Type
- Custom post type is_singular condtional not working when managing sidebar display
- Is it possible to specify a time interval (from, to) in ACF with date picker, or other custom field?
- Delete old thumbnail when updating new
- get_the_post_navigation not working
- Display ACF object field data using Elementor Custom Query
- Changing to different post type maintains the redirection?
- Sortable admin columns ordering from custom fields isn’t combine com search and Dropdown filter
- Calling custom taxonomies
- WordPress custom field sorting, weird behavior: the latest post is at the end
- Limit taxonomy terms added to a custom post type
- I want to understand plugin implementation of custom posts / taxonomies / metaboxes
- Issue displaying multiple TinyMCE editors with WPAlchemy
- Default WordPress Query for a Specific Custom Post Type URL
- Custom order of CPT posts by title, in wp-admin area by default
- Sort ACF by custom taxonomy
- Custom post type with custom parent prefix slug
- Is it possible to use a post name in a custom post slug?
- How do I add the “orange counter” next to a Custom Post Type?
- Custom slugs with dates & IDs on Custom Post Type
- using jetbooking for multiple custom post types
- Custom post type pagination conflict result in 404
- Dynamically count the number of custom post types associated to a custom taxonomy
- Add post id to url instead of WordPress default -2 suffix
- How to consume external API from WordPress post editor and display the response data in the custom field?
- Taxonomy Archive URL + Template