WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. raskull
    Member
    Posted 1 year 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?

    http://wordpress.org/extend/plugins/events-manager/

  2. agelonwl
    Member
    Posted 1 year ago #

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

    --scroll below the page

  3. raskull
    Member
    Posted 1 year 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

About this Topic