WordPress.org

Ready to get started?Download WordPress

Forums

How do i add "Tags" to custom post types? (4 posts)

  1. Khal3d
    Member
    Posted 3 years ago #

    Hello,

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

  2. chinmoy
    Member
    Posted 3 years ago #

    'support' => 'tags'

  3. Khal3d
    Member
    Posted 3 years ago #

    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')

  4. Khal3d
    Member
    Posted 3 years ago #

    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 :D

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

Topic Closed

This topic has been closed to new replies.

About this Topic