Custom Post Type Taxonomy Display
-
I need to display the categories for my custom post type in the Dashboard.
I have this code:
function business_edit_columns($business_columns) { $new_columns['cb'] = '<input type="checkbox" />'; $new_columns['title'] = _x('Business Name', 'column name'); $new_columns['author'] = __('Author'); $new_columns['categories'] = __('Categories'); $new_columns['date'] = _x('Date', 'column name'); return $new_columns; }
And the categories are displaying “Uncategorized” instead of the custom taxonomy that is associated with the business listing. I think I’m in need of another function to tell WP what I’m after (since it’s a custom taxonomy, not a standard one)
I had thought something like:
function business_columns_display($business_columns){ switch ($business_columns) { case "categories": get_the_terms($post->ID, 'bz_categories',); break; } }
Might be the answer, but since I’m not in the loop, that doesn’t work.
Thanks!
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Custom Post Type Taxonomy Display’ is closed to new replies.