Another easy one! 🙂
As you know I think very highly of WordPress in general, but the admin menu architecture is one of the nastiest hacks I think I’ve ever seen in open-source software. What’s only greater in magnitude is the core WordPress team’s unwillingness to acknowledge how bad it is and their lack of willingness to discuss improving it. But I digress…
Anyway, here’s what you want (I think):
(source: mikeschinkel.com)
And here’s how to get it:
add_action('admin_menu','rename_pages_to_main_sections');
function rename_pages_to_main_sections() {
global $menu;
global $submenu;
$menu[20][0] = 'Main Sections';
$submenu['edit.php?post_type=page'][5][0] = 'Main Sections';
}
P.S. Also, you might find the code I posted here helpful too:
Related Posts:
- Function to display custom post type on front page makes menu items dissapear
- custom post type not showing in menu
- Custom Post Type & Custom Menu Walker to append custom class for active post types
- Calling the first & last post by category in custom post type
- wp_insert_post generates endless posts
- Remove standard meta boxes from custom taxonomy
- What’s the difference between same wp functions get_posts(); functions in different form?
- Update menu when saving settings
- I did group my search results by post type, but how can i give each of them its own order?
- Dequeue scripts and styles only for specific custom post type
- Show category ID on custom post type
- How to customize a permalink (URL) structure?
- Custom Post Type with Templates using Meta Boxes?
- Correct classes for WordPress menu items
- Custom Taxonomy Navigation, with current menu items for children?
- Can I list a custom post type within another custom post type in the admin area?
- Change custom post type slug from plugin options
- Customize the Dashboard Menu Editor
- Display posts from Custom Post Type in category page on front-end
- Use menus with anchors
- How to make this menu drop down or like accordion
- Custom Post Type Nav to Subpage
- Can’t edit custom post type
- Custom Post Types don’t highlight in menu nav
- Querying both pages and posts
- Using default WP menu functionality to link to custom post-type listing?
- Set URL link to featured image of custom post type
- Change CPT archive title
- Second Set of Eyes: One custom taxonomy shows in Appearance > Menus, one does not
- AJAX load more for different custom post type loops
- PHP variable not regenerating when publishing multiple posts at the same time
- On update or create post redirect to current post position in list
- I need to add endpoint for wordpress categories
- How to target a specific custom post type post and its all children and grandchildren?
- Featured image overlay when changing post status
- Regex with a possible hyphen
- get_post_meta not working on publishing
- Redirect 404 page with ID in slug to associated page with same ID in slug
- WordPress wrapped added a span tag to every single p tag
- ACF field key/value to show on taxonomy list
- Re-registering a custom post type not working (not showing up)
- Display featured image from one CPT within another CPT query
- Query taxonomy of taxonomy of custom post type
- Best way to style first post differently?
- How to make custom posts types display when published for the future
- How to rewrite url for any specific taxonomy?
- page menu entry for custom post type
- create a new page from a custom post type similar to an authors page
- CPT archive admin menu label
- Anon function and add_meta_box
- How to display custom WP menus?
- Hide a widget inside a div on specific type of post
- Shortcode not working with post counter
- Changing default ‘posts’ parameters with register_post_type_args
- Removed custom post type slug but not working for child pages
- Homepage’s content is dependent on the custom field values (set automatically), how do I get homepage to update without manually updating page?
- Cannot save CPT meta box
- Allow users to create posts without logging in?
- How to change permalink to include custom post type
- Is there a way to establish parent/child relationship in WP menu links exclusively?
- Use custom walker to add taxonomy terms to main nav menu
- Configuring a meta query with multiple post types that have the same relationship on a single page
- A page that shows a list of a specific custom post type
- Add term to custom post type on draft
- How to assign classes to all elements?
- next_/previous_post_link() `in_same_category` appears to fail when true
- Single custom post type’s menu ancestor/parent is Posts archive page
- Want to be able to sign up subscribers as authors
- menu link to custom post_type?
- Review site custom post type structure
- Load scripts based on post type
- Different Category system needed for the Custom Post Type
- Custom Post Types in the WordPress Navigation Menu
- Global custom meta box
- Redirect to another page using contact form 7? [closed]
- Template not working for the custom Post type
- Warning: Invalid argument supplied for foreach() [closed]
- Custom post type isn’t working
- Meta-Boxes for CustomPostType cause PHP Errors and Notices in “Add New” view
- categories should be available across all custom post types
- Warning: Invalid argument supplied for foreach() in post.php [closed]
- Featured Image field not appearing in Custom post type
- Post-thumbnail only for specific post-types?
- custom post type metaboxes not saving
- Ordering Submenu Pages in WP 3.1
- Including link to custom post type in ‘wp_list_pages’ function
- Enable taxonomies by post type in an array of CPTs
- PHP question: how to combine syntax?
- Which Template Page Should I Use?
- Loop increase number
- custom post for slider
- How can i automatically add CPT single pages as sub menu items
- ACF in wordpress
- How can I use archive-{post_type}.php theme template?
- Change Slug of a Custom Post Type
- Excerpt function for any content
- Assign category a default post type
- Navigate posts with different post type that are in the same categories
- Custom Post Type Link added to menu won’t show in frontend
- List of all entries of custom-post-type: Add year-parameter?