• HI there!

    Awesome plugin. I’m looking the documentacion for a shortcode to show the locations tagged with a especific tag…is this possible?

    Thanks

Viewing 9 replies - 1 through 9 (of 9 total)
  • Are you looking for something like that?

    {has_tag_X}#_LOCATIONFULLLINE{/has_tag_X}

    Replace X with whatever tag you are searching for.

    Thread Starter V

    (@v)

    Best!

    But where to put this? I try to insert on my template like other event’s manager shortcodes (with [] ) and only appears like normal text.

    {has_category_sports}
    <li>#_LOCATIONLINK</li>
    {/has_category_sports}

    It’s correct??

    Hi,

    I think you should put this code where EM html code is accepted; For example in HTML widgets of your theme or in EM–>settings–>formats.

    You also can use something like this:

    [events_list scope="future" category="ID"]
    <li>#_locationlink</li>
    [/events_list]

    Replace ID for category single id, slug or comma-separated ids or slugs (e.g. “1,categories-slug,3”) to limit the search to events in any of these categories. You can also use negative numbers and slugs to exclude specific categories (e.g. -1,-exclude-categories,-3)

    I hope it will be useful for you, I’m not an expert of EM plugin but I always look in the documentation because is very completely and helpful EM documentation. Maybe an EM expert can help you more than me.

    • This reply was modified 7 years, 5 months ago by jordib.
    Thread Starter V

    (@v)

    Thanks for your help Jordib!! ??

    I manage tags and shortcodes of EM and works well with [events] [/events_tags] and so on…but with {} i can’t get any output…

    Well still searching…thanks!

    Can you post the code you’re using?

    Thread Starter V

    (@v)

    Sure:

    That’s it:

    {has_category_sports}
    <li>#_LOCATIONLINK</li>
    {/has_category_sports}

    I try to put this on HTML posts view and on a new widget, but only shows normal text…

    Thanks in advance.

    V

    Hello,

    When you say normal text, do you mean it’s not showing in list format? It’s not recognizing the HTML tags?

    Hi again;

    If you want to use shortcodes in a widget you should add this code in your functions.php file of your theme

    add_filter( 'widget_text', 'shortcode_unautop');
    
    add_filter( 'widget_text', 'do_shortcode');

    Hope it will help you.

    Did the suggestion from @jordib help? Sounds like that could be the problem.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Show locations events of specific tag with shortcode’ is closed to new replies.