I’m not sure why you’re getting the ‘0’s. But you shouldn’t be using 2 switch statements in work_custom_columns().
Try this:
function work_custom_columns($column){
global $post;
switch ($column){
case "work_category":
echo get_the_term_list($post->ID, 'work_category', '', ', ','');
break;
case "work_hashtags":
echo get_the_term_list($post->ID, 'work_hashtag', '', ', ','');
break;
}
}
Related Posts:
- Load custom posts with same tag as page
- Categories and Tags not working!
- Search doesn’t find tags or categories in custom post types
- Custom Taxonomy – Tags Metabox is showing instead of Categories
- Group posts by custom post type
- Custom post type getting wrong categories and tags
- How to display “Category and Post_tag” component in a CPT Gutenberg edit screen?
- Cross reference custom post types
- How can I show 1 featured post in a styled element, and the next few below differently styled
- Tag page only display 10 posts
- Meta data (Tags and Categories) for Custom Posts not showing.
- Why does my taxonomy have a category style div id?
- Need help deciding on a taxonomy
- Get Posts by Category, Tag , and CPT Taxonomy
- The Difference Between Categories and Tags and Taxonomies and Terms
- Custom post type, taxonomy and admin bar
- Advanced archive url structure (category, tag and date)
- get taxonomies from terms
- How to set “section categories”?
- Do not output category and tag URLs
- Organizing The Custom Post Type with Taxonomies / Parent Posts
- Can WordPress show posts based on a button that the user clicked 2 pages back?
- How to show all posts of the category in wordpress?
- Get category id from post id of a custom post type
- How can I include custom post types on a tag page?
- Adding Help Tabs To Custom Post Types
- Undefined property: stdClass::$labels in general-template.php post_type_archive_title()
- Glossary with Custom Post Type
- Custom-Taxonomy as categories: Remove “most-used” tab?
- Add filter to wp_list_categories and query what type of taxonomy-terms it use?
- Exclude Custom Post Type & Pages From Auto-Tag Function
- Displaying custom post type on category pages but not on blog listings
- List all custom post type posts from a given category?
- How to customize the Categories meta box to allow only one category?
- Display Posts of a Category in Alphabetical Order (Custom Post Type)
- Taxonomy structure of Sport site
- Is it possible to make tag archive page specific to Custom Post Type?
- get custom post type categories
- How to display recent / random posts by its category
- Custom post types and permalink
- Querying Term Posts in Loop
- Get Post Primary Category
- How to add custom post types to normal category pages
- Add category attribute to custom shortcode
- Linking to the most recent post in a Custom Post Type
- Posts from all the categories are being displayed instead of particular category
- Conditional Statement custom post type category
- Categories sorting
- How can I make my custom posts appear in their assigned category url?
- Allow user to set custom order to a list of custom taxonomies?
- search also in taxonomy, tags and custom fields
- forming WP_Query for posts of all post types but from specific categories
- Add tag to a custom post type doesn’t change the total of custom post type in backend
- PHP variable not regenerating when publishing multiple posts at the same time
- Problem with displaying posts in the CPT category
- Custom Post Types with a common category for a blog listing
- I am trying to hide a custom post type category to logged in users with Pre_Get_Posts
- How do you create a custom template to display a category with an image and related posts below?
- Category.php template for custom posts
- Best way to specify “article type” in URL
- Archieve.php not loading for custom post type
- Category archive in with conjunction with custom post type is empty
- Custom post types and ‘new WP_Query’
- Assign category a default post type
- List Posts By Custom Taxonomy
- How to Display Posts From Category Within a Custom Taxonomy?
- Category Icon on custom post type
- Get child categories of custom taxonomy category?
- Create query for both custom post type and category
- Get terms for a specfic post from multiple taxonomies in custom post type
- Add Extra Category Field to CPT Categories
- cannot achieve this structure (custom posts VS categories VS ??)
- Why doesnt my tag page populate with this custom post type?
- Display all Categories except ones with a specific parent
- Custom post type archive page filters
- Custom query using one category that is used in all custom post types
- Show Custom Post Type based on Category on Archive Page
- Convert With Custom Post Type
- To display the category of a specific custom post type
- Custom category taxonomy – archive page not showing up
- Custom post type category archive URL redirects to home page
- Structuring 3K pages in WordPress
- Get full control over custom post type url
- How to switch from custom post type URL to category URL?
- Display 2nd category, only once, as sub-heading, in the loop
- Taxonomy count per Post type
- Best way to structure article and issue relationship for CPT
- Custom Post Type used for FAQs Accordion
- WordPress Custom Post Type and sort by Tags
- Category slug not showing for Custom Post Type
- Get a list of categories ids
- category page template for custom post type
- Custom Post Type Permalinks with %category%
- Return Custom Post Type Categories
- Display by tag from different post types
- Tag-post relationship problem
- Using tax_query to get single post per category
- Test if a Category contains certain Custom Post Types
- What Is My Fault With This WP_QUERY ? [ Pagination Problem ]
- Is it possible to make is_category() recursive?