Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I just discovered a new meta field on the newly created custom post type page. The meta name is slug, and it's under the wp editor field. What's that, and how can I remove it?

share|improve this question

2 Answers 2

on the top right of the page where you edit your post or page you will see two buttons: [Screen options] and [Help]. Click on [screen options]. You will see all kinds of options, unmark the one labeled "Slug" and it will disappear from the post/page edit page.

If you want to know what that was: http://codex.wordpress.org/Glossary#Post_Slug

Hope that helps

share|improve this answer

You can remove the slug metabox from a post type with remove_meta_box:

add_action( 'add_meta_boxes', 'my_add_meta_boxes' );
function my_add_meta_boxes() {
    remove_meta_box( 'slugdiv', 'my_post_type', 'normal' );
}
share|improve this answer
    
Thanks, but why does it have a new metabox? I also can edit the url under the title, whats the difference? –  Rinoleti Mar 13 '13 at 20:25

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.