Customn Column – Get Category
-
Hello,
I am really not getting this together. I just want to add a custom column to my “events” admin page. I already added the column, however, I cannot seem to get the right command to get the category.
Can someone help me out?
function event_manager_categories_content($column, $post_id) { global $event; switch ($column) { case 'category': $emcategory = get_term_by('id', $post_id, 'event-categories'); $emcategoryname = $term->name; echo $emcategoryname;
I really have a problem with all the names in EM. Where do I get all the right names? E.g. for taxonomy I already read “event-categories” but also “EM_TAXONOMIES_CATEGORY”. Which is the right one and how can I find out myself?
– Thanks already.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Customn Column – Get Category’ is closed to new replies.