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
- Adding a Custom Post Type into the menu screen
- How to change default position of WP meta boxes?
- Displaying Custom Post Types In “At A Glance” Meta Box
- Display a query with multiple post types and same relationship on a single page
- Remove current_page_parent nav class from blog index when in CPT
- Now can I group custom post types together?
- how to group custom post types
- echo value from ‘select’ field type into page template using cmb2?
- Exclude add_filter from the admin
- wp_list_pages not showing cpt as I expected
- WordPress 3.1 – How does one add sticky post capabilities to post types
- Custom post type permalink changing itself every other change
- Posts to expire (deleted) after a date
- White screen error for a custom theme
- Custom user role not working as expected
- Which User Role for Custom Post Type Menu – wp_nav
- Limit Authors to their Own Posts on front-end excluding admins
- Create Custom Post Type Archive Page with Sub Categories Navigation Sidebar
- Why are navigation items saved in the database?
- ‘Pages’ widget alternative for custom post types?
- Apply post formats to a specific post type only?
- Navigation menus not showing because of custom post type filter
- Loading all files within a directory
- Insert HTML inside link in a walker
- What’s the difference between same wp functions get_posts(); functions in different form?
- Custom Post Type with Templates using Meta Boxes?
- How to make this menu drop down or like accordion
- Using default WP menu functionality to link to custom post-type listing?
- Set URL link to featured image of custom post type
- On update or create post redirect to current post position in list
- Redirect 404 page with ID in slug to associated page with same ID in slug
- Display featured image from one CPT within another CPT query
- Anon function and add_meta_box
- How to display custom WP menus?
- Shortcode not working with post counter
- Changing default ‘posts’ parameters with register_post_type_args
- Allow users to create posts without logging in?
- Is there a way to establish parent/child relationship in WP menu links exclusively?
- A page that shows a list of a specific custom post type
- Load scripts based on post type
- Redirect to another page using contact form 7? [closed]
- Meta-Boxes for CustomPostType cause PHP Errors and Notices in “Add New” view
- Post-thumbnail only for specific post-types?
- custom post type metaboxes not saving
- Including link to custom post type in ‘wp_list_pages’ function
- Enable taxonomies by post type in an array of CPTs
- How can i automatically add CPT single pages as sub menu items
- Showing custom post type categories in the menu
- How to use a variable as a function name?
- WordPress menu with custom taxonomy
- Run shortcode in custom script in wp_head if post type is CPT ‘Jobs’
- Custom Ratings for Theme, Proper way to Refactor Code and Clean up Template File
- Get post format
- posts within custom post type all share the same content in the front-end
- Shortcode to return single custom post based on post taxonomy
- Using Wp_Query, Json to add Highcharts series data
- Template code to split a post and print a custom field?
- Send post changes to set email addresses (not users or subscribers)
- Let users upload image(s) to the post from front end
- Foreach loop returning more than one item when querying taxonomy
- Have custom post type Visibility be private by default, and have radio button also set to “Private”
- Post visibility option to theme front-end for author to select?
- Sorting custom post types in edit.php : Post disappear
- highlight parent page menu item when in custom post type
- Page template that uses lightbox to display post images
- Custom post type post in custom menu
- Function to allow single post template based on custom taxonomy?
- WordPress rewrite rule doesn’t work unless post category is explicitly called in regex
- Get Posts List of Current Selected Custom Taxonomy in Shortcode
- Custom taxonomy terms as children of multiple custom post types
- What is the best way to set the post category (Custom Post Type) automatically based on the one of the tags assigned to the post?
- Custom Form / Search with Custom Post Type Data
- Check that a slug is present in the get_terms request
- Custom attachment function not working in v5.4.2?
- Cannot display the_content() after removed WordPress 5’s auto embed feature (iframe & blockquote)
- Update main post with same category when creating custom post to update the modified date
- CPT tags not showing when editing post
- Attend event form with ajax
- Persist meta box choices throughout all posts of same post type
- subtracting the current post form then whole loop, which is generating all CPT titles
- Custom Function to redirect singular post if specific meta field is empty
- Function for when new custom post type is created should do something
- Possition a Custom Post Type Tab under Settings
- Pagination fault in custom post type archive page [duplicate]
- How can i call a custom method on submission of a custom plugin post type?
- Set the Title of a Custom Post Type by code as Author’s Username
- Function not pulling image or text from custom post type
- Rich Custom Field for Custom Post type not saving
- Getting (Invalid) when adding custom taxonomy of custom post type link in menu [closed]
- Can’t preview custom post – Redirected to home page
- Custom Loop for custom post type. Compare by meta_value?
- Passing postid of Testimonial Custom Post in Shortcode Parameter
- How to I add count of custom posts listed in a post as a prefix to its title
- Menu Structure and URL structure, with Pages and Post-Type-Posts
- add_rewrite_rule not working with custom post type
- I want to show a list of post with title that have link goes to that post and icon under the specific category to which it belongs