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've been searching for a while for an answer to this, but the results I find always deal with custom post types as opposed to the built-in 'post' post type.

I want to remove the default 'Post Tags' taxonomy from the built-in 'post' post type and then add my own custom taxonomy to replace it. Essentially, I have other custom post types using my custom taxonomy and I'd like to align the 'post' post type with them.

I can't for the life of me figure out how to edit the default post type though, any ideas how I would do this?

Thanks in advance.

share|improve this question

1 Answer 1

up vote 1 down vote accepted

to completely remove post tags: http://stackoverflow.com/a/8363082

if you want to remove post tags from posts, but keep on other custom post types:

add_action( 'init', 'my_register_post_tags' );

function my_register_post_tags() {
    register_taxonomy( 'post_tag', array( 'my_post_type_here' ) );
}

to add your own custom taxonomy to posts, use register_taxonomy, setting the $object_type parameter to post.

share|improve this answer
    
Maybe I'm wrong but it seems to me like the link you provided will remove post_tag from ALL post types (default & custom). I want to remove it from default only, and still have it available for other custom post types. Is that possible? –  user5710 Mar 27 '13 at 22:16
    
i've updated my answer to show this, you just pass in the names of the CPTs you wish to add post_tags to in the array. –  Simon Blackbourn Mar 27 '13 at 22:28
    
Worked like a charm, thanks. Seems so simple now but I just couldn't wrap my head around it. –  user5710 Mar 28 '13 at 0:26

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.