Events Manager
get event category name from category id (3 posts)

  1. raskull
    Posted 4 years ago #

    What is the EM syntax for getting the EM category name based on the EM category id? In the regular WP category taxonomy it is
    get_cat_name( $cat_id )
    Is there something similar for EM categories?


  2. agelonwl
    Posted 4 years ago #

    please see this previous post http://wp-events-plugin.com/updating-to-v5/

    --scroll below the page

  3. raskull
    Posted 4 years ago #

    Thank you for pointing me in the right direction.

    Get the EM category name of the EM category with id 5:

    $emcategory = get_term_by('id', 5, 'event-categories');
    $emcategoryname = $term->name;

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Events Manager
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic