Events Made Easy Forums How do I … get the category id of one event

Tagged: ,

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #43154
    Anonymous
    Inactive

    I need to get the “category id” when I’m on the detail page of the event. How can I retrive this? I need this “category id” variable to use in the template header.php.

    #48005
    Anonymous
    Inactive

    Solved!

    if(eme_is_single_event_page()){

    $event_id = $wp_query->query_vars;

    $event = eme_get_event($event_id);

    echo $event;

    }

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘How do I …’ is closed to new topics and replies.
Scroll to Top