Support » Plugins and Hacks » Events Manager » [Resolved] Trouble getting EM tags to display

[Resolved] Trouble getting EM tags to display

  • I have a sidebar that for most pages displays different SEARCH and BROWSE options and headers depending on WordPress categories.

    For the Events page, I wanted to use the same system, so I created a single post for the events list and gave that the category “Calendar”. Everything’s working fine.


    For the regular WordPress categories, I set the BROWSE sub-list to equal the tags that are used for posts in that category. I want to do the equivalent in my Events page, but have the sub-ilst be determined by the Events Manager tags. I’ve tried using the same code as with the categories but replacing e.g. “category_tag” with “EM_tag” but this isn’t working.

    Here are the pages in question: the first is working right, the second has no sublist under BROWSE, though it should have a few EM tags there.




Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Marcus


    what’s the difference between the two pages, is one using normal categories and the other event categories? I ‘m confused because they both have the same permalink structure.

    Sounds like you’re on the right track but instead of category_tag (which I don’t recognize, the normal taxonomy is post_category), with the PHP constant EM_TAXONOMY_CATEGORY or event-categories

    Thanks — Yes, I’m trying to use event tags in place of category tags. Maybe you could take a look at my code? This is in sidebar.php

    The second part (after “else”) is working, but the first part is not. It’s not breaking anything, it’s just not printing what I want it to print (a list of linked EM tags)



    if (is_page( ‘calendar’ ) ) {

    $args = array(
    ‘categories’ => $catID


    $EM_tags = EM_get_tags($args);}

    /* print_r($EM_tags); */

    $content .= “”;

    foreach ($EM_tags as $EM_tag) {
    $content .= “<p>link\”>$EM_tag->slug</p>”;

    echo $content;}

    else {

    $args = array(
    ‘categories’ => $catID


    $tags = get_category_tags($args);}

    /* print_r($tags); */

    $content .= “”;

    foreach ($tags as $tag) {
    $content .= “<p>tag_link\”>$tag->tag_name</p>”;

    echo $content;



    Plugin Author Marcus


    ah, we don’t have an EM_Tags class at the moment like we do for categories, funnily enough something I have half-done right now although it may not be released in the next update due to other commitments.

    you’d need to use something like WP’s get_terms function at the moment


    Maybe I can use EM categories — not sure why I thought I couldn’t. But now I’m confused as to how I would do that. i’m customizing a site built by someone else and sort of stumbling through. Thanks for your help.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] Trouble getting EM tags to display’ is closed to new replies.
Skip to toolbar