WordPress.org

Forums

[resolved] Category Not Being Attached To Custom Post Type (2 posts)

  1. showtimeshane
    Member
    Posted 4 years ago #

    I have a registered Custom Post Type that I'm attempting to attach a Category to, and it I can't seem to get it to work. I supplied the following arguments when registering my post type (the important one being the "taxonomies" for the post type):

    $args = array(
    'labels' => $labels,
    'public' => true,
    'publicly_queryable' => true,
    'show_ui' => true,
    'query_var' => true,
    'rewrite' => array('slug' => 'work/web'),
    'capability_type' => 'post',
    'hierarchical' => true,
    'menu_position' => null,
    'revisions' => true,
    'supports' => array('title','editor','thumbnail'),
    'taxonomies' => array( 'post_tag', 'category'),
    );

    When creating a new post or editing an existing post in this Custom Post Type I see the "Categories" input box with the category names I can attach to the post. If I select a category checkbox and assign it to the post and click Save it appears the Category is attached to the post, however, when I view all custom post types of this type (http://www.showtimedesigner.com/wp-admin/edit.php?post_type=custom_post_type_name) there aren't any categories or tags attached to any of my custom posts. Anyone know of any reason this could be happening? I have been researching this for days.

    Thanks in advance for any help you can provide! :)

    Shane

  2. showtimeshane
    Member
    Posted 4 years ago #

    This randomly started working for me. Marking as Resolved.

Topic Closed

This topic has been closed to new replies.

About this Topic