The box which allows slug edition under the post title is actually tied to the slug metabox. It needs it to work. So, removing the metabox will break it.
The only solution, I think, would be to use javascript or css to hide it. Something like this will work:
function hide_slug_box() {
global $post;
global $pagenow;
if (is_admin() && $pagenow=='post-new.php' OR $pagenow=='post.php') {
echo "<script type="text/javascript">
jQuery(document).ready(function($) {
jQuery('#edit-slug-box').hide();
});
</script>
";
}
}
add_action( 'admin_head', 'hide_slug_box' );
Related Posts:
- WordPress SEO by Yoast: Hide Meta Boxes in Posts for Non-admins
- How To Remove The “+ Add New Category” Link From A Category Metabox
- Add Slug Metabox to posts for contributors
- Problem with meta box in Links
- How to modify Publish metabox?
- Cannot save CPT meta box
- Set default value for radio button in WP Alchemy custom meta box?
- My custom write panels won’t save data. What am I missing?
- Redirect to another page using contact form 7? [closed]
- Use a shortcode to display custom meta box contents
- remove a single post_meta
- save meta data of custom post type: WP_Error has no effect, even if insufficient capabilities
- Custom meta box using OOP way doesn’t save data
- Select Options Meta Data is Not Updating in Edit Meta Box
- Saving an upload media meta box field
- Passing error/warning messages from a meta box to “admin_notices”
- How to change default position of WP meta boxes?
- Display random categories on the front page (Finding and Editing Theme Functions)
- Shared functionality in plugins and themes
- How Does WordPress Remember Metabox Positions?
- Prevent sorting and dragging of specific postbox metabox
- Cleaning up WordPress to improve performance?
- CMB2 metabox conditional logic
- How to pass variable via $callback_args for add_meta_box
- Undefined function error when creating Custom Meta Box
- Slugs as breadcrumbs for Pages
- Getting the ID of a meta box
- Detect meta value changes when post is updated (post_updated)
- Custom filter for the_content doesn’t work correctly
- Removing Unnecessary Text from Admin Menu without CSS
- Is there a predefined callback function for custom categories?
- How to let a single post have its own domain name
- Display WordPress Search
- prevent post submission
- Problem in custom meta boxes
- Custom post type’s slug gets wrong when adding a custom meta box
- Preferred Use of home_url()?
- Why is save_post hook not running?
- Get page slug and assign a variable within functions.php
- Refactor create_function
- How can I get the page url slug when ‘post_name’ returns an id?
- What’s the difference between same wp functions get_posts(); functions in different form?
- is_customize_preview() like function to check if Customizer “Live Preview” in JavaScript
- Custom Post Type with Templates using Meta Boxes?
- The Best Way to always load the newest version of 3rd party code
- Creating an “admin only” meta box with WPAlchemy. Getting a fatal error on front-end when using current_user_can
- Retrieve $_POST data submitted from external URL in WordPress(NOT API)
- Store multiple textarea data in database from a metabox
- Custom Attachment Caption Fields
- Is there a way to display metabox in frontend? How?
- Compare the old get_theme_mod($name) to the new get_theme_mod($name) return value
- Display Term Metabox Only On Certain Term Edit and Add Pages In Admin
- How to prevent further updates of custom meta when using actions to set one meta based on another
- Stop saving process when metabox is invalid [duplicate]
- List all sidebars in metabox
- Have mu-plugin remove meta box ONLY if it isn’t already removed in functions.php
- Is there a way to create a meta box that can be added multiple times to a post dynamically?
- WordPress custom post type with folder structure in slug
- Parse a text area custom meta box and assign as value to existing meta keys
- WordPress global variables?
- Get wordpress taxonomy slug name(s) to use as div class
- I have added a metabox and inside it i added a secondary title and a text editor but if i write anything it does not save it or show it on my page
- How to append classname to body tag if guest user
- How many meta-query fields support WordPress search at a time?
- Cannot remove meta box added through OOP
- Show custom post with custom categories with specific slug
- WP admin display custom field if another field value is “Female”
- Function to replace comment’s accented characters before posting
- Optimize CPT-function with a loop
- Post visibility option to theme front-end for author to select?
- sort metabox columns in listing Single
- Checkbox doesn’t save inside metabox
- get_post_meta giving errors while creating a metabox
- External api call and make global variable for any page visitor enters , page-home, page, single etc
- CSS style and app.js not loading
- how to Add Meta Box with featured image settings and To Edit Post Screen For Inline Styles (css box)?
- Adding a drop-down (select tag) option under Menu Settings in WordPress Admin
- Parent category as WOOCommerce Categories widget title
- get_post_meta not working on my custom-function page
- Automatically refresh page if widget is added to page?
- Display list of pages that contain a certain string within the slug
- issue with saving custom metaboxes fields
- How Add a Save Button to Custom Meta Box without Leave/Stay js Dialog?
- Removing Meta Generator
- Getting a 404 on single custom post type page when using rewrite on a custom taxonomy
- Change post template the proper way
- Using Meta Boxes in a Custom Page Template
- Custom carousel with meta box data
- show title if one of post meta exist
- Query a Custom Post Type to another CPT via Metabox
- How to request login for user but not for bots
- Display a list of users with avatar filterable with alphabets
- Custom metabox with App Store / Google Play links
- Metaboxes not saving data
- How can i remove blank area caused by theme’s post meta boxes?
- Input select option Change Content in Metabox
- multible shortcodes (for differnt values) with one function
- CPT posts in drop downed in meta box on page doesn’t return post ID
- How to make remove display none to this div container in post meta box?
- Warning: Illegal string offset ‘post’ and ‘page’