Categories for custom post type empty
-
I’ve created a custom post type ‘video’ and registered a taxonomy as so:
add_action('init', 'lmctv_video_taxonomy_init'); function lmctv_video_taxonomy_init() { register_taxonomy( 'category', 'video', array( 'label' => __('Video Categories'), 'rewrite' => array('slug' => 'video-category') ) ); }
Unfortunately, even when a post has an category attached (e.g. https://lmctv5.louissimons.com/videos/smart-beautiful-you-episode-11/), the category listing is empty (https://lmctv5.louissimons.com/video-category/episodic/). I’ve been looking at the database, and it looks like the wrd_term_relationships table is properly linking the category and video together. The wrd_term_taxonomy table even lists the proper number under the “count” column.
I was wondering if anyone knows what I could do to further debug the situation?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Categories for custom post type empty’ is closed to new replies.