WordPress.org

Support

Support » How-To and Troubleshooting » How do i add "Tags" to custom post types?

How do i add "Tags" to custom post types?

  • Khal3d
    Member

    @khal3d

    Hello,

    Is there any way to support “tags” in custom post types?

Viewing 3 replies - 1 through 3 (of 3 total)
  • chinmoy29
    Member

    @chinmoy

    'support' => 'tags'

    Khal3d
    Member

    @khal3d

    This is my code and every thing is working fine but unfortunately tags not working with me!

    'supports' => array('title', 'thumbnail', 'excerpt', 'comments', 'custom-fields', 'tags')

    Khal3d
    Member

    @khal3d

    I found a solution to enable tags in custom post types by adding this code to register_post_type
    'taxonomies' => array('post_tag')

    by the way i’m looking for another solution because some plugin doesn’t have this code and tags working fine … i don’t know why 😀

    And this solution use tags for post and make it available for posts and my custom post!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How do i add "Tags" to custom post types?’ is closed to new replies.