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
- how can i do metabox [closed]
- Add custom action in post type
- How to add meta box for image upload using WordPress media uploader?
- Condition display metabox in case the post is saved
- Global custom meta box
- PHP Notice: Undefined index: mytheme_meta_box_nonce
- How to position user meta data field
- How to modify files inside wp-includes directory in wordpress
- How to create a button click counter meta box?
- Display Content if Meta Checkbox is checked?
- Meta-Boxes for CustomPostType cause PHP Errors and Notices in “Add New” view
- why add_menu_page use simple function as arg while add_meta_box a call back?
- List all sidebars in metabox
- meta box & callback function
- Save meta value as an array of arrays
- Polylang not translating Metabox fields [closed]
- different style sheet for just one page template
- How to obtain the current website URL in my theme?
- What exactly do this function declared into functions.php file of a WP theme?
- Specific coditional usage [closed]
- Add a meta box to ALL Pages
- Output from Meta Box Array
- custom post type metaboxes not saving
- Custom Post Type & Custom Menu Walker to append custom class for active post types
- $_GET & $post_ID
- How can i use this meta box function in my template ? (WordPress)
- add_post_meta() & update_post_meta()
- Have mu-plugin remove meta box ONLY if it isn’t already removed in functions.php
- How to disable Author dropdown in Gutenberg’s Status and Visibility panel
- Show meta box only for default page template
- Illegal string offset in PHP function
- Condition OR for current user ID
- How to retrieve the current post’s generated featured image size?
- Use /prefix/postname as a slug in post_name?
- disable Tab post on nav-menus page (Admin)
- Why does this update_post_meta function not delete the custom field itself?
- How to show the value of specific key from nested array?
- How to remove some metaboxes for CPTs?
- Change Slug of a Custom Post Type
- get_post_meta as a list for drop down search filter
- Custom Behavior when Adding New Custom Post Type in Dashboard
- Where do I store custom functions that call custom page template files?
- add_post_meta | update_post_meta | Via the frontend
- Plugin Development – Functions or Hooks?
- Global Variable vs Local Variable
- Adding jQuery datepicker to Custom Post Type Metabox [closed]
- Format latest/newest post differently
- MetaBox with Editor instead of textarea – html not saved [closed]
- How to add metabox ONLY to specific WooCommerce product type [closed]
- Use meta boxes inside an archive page template for Woocommerce
- Why There Is No “get content by ID” Function
- Is there a way to create a meta box that can be added multiple times to a post dynamically?
- Why does not my metabox save?
- Add an Outside Wrapper to my Header and Make it Full Width
- Data won’t save if metabox within conditional in admin. What am I missing?
- Why do Metabox use Nonces?
- Add metabox without the container
- input radio ‘checked’ saves, but select option ‘selected’ doesn’t
- Get post meta retrieving wrong value
- Custom HTML markup
- Two Custom Post Types with Identical Articles Competing for the same Slug
- Don’t change Custom Post Type slug to unique value
- How can I hide custom field from users used for caching response from external api?
- WordPress custom post type with folder structure in slug
- multi custom fields and taxonomy search
- Migrating from metaboxes to wp_editor()
- wpalchemi metabox doesn’t show value from my post type
- Let’s Create Custom Field Template Documentation
- Parse a text area custom meta box and assign as value to existing meta keys
- conditionally echo in meta box data loop
- WordPress global variables?
- Getting metabox value?
- Function Reference Documenting Template Tags for use in Custom Theme Templates?
- Get wordpress taxonomy slug name(s) to use as div class
- HTML Table creator in metabox to put into post theme
- Display stored value in Meta Box
- How to insert data into meta box from another plugin?
- Wp-query Order By problem
- Create page template via functions.php?
- Create custom function for hero image
- How to create a field in customize and show that in header.php?
- Randomizing wp_tag_cloud() in child theme
- save_post_{$post->post_type} action firing on second save
- 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
- Add a metabox when editing a media – but only for images