Events Manager
[resolved] How to link image/button to specific event using shortcode/placeholder? (6 posts)

  1. Marjolijn Harvey
    Posted 3 years ago #

    I have isntalled Events Manager
    on my test site here.

    As you can see I created a more info image/button, how can I link this to specific event?
    OR even better, have the whole div ( <div class="event-container"> link to event?

    I tried using these:

    1. cannot use #_EVENTLINK because it displays anchor (name link) too.
    2. cannot use [#_EVENTLINK] <img></img>[/#_EVENTLINK]
    3. cannot use [event post_id="inherit"]<img></img>[/event]

    is there a specific shortcode for calling the specific event? I did notice the main event page has a shortcode: [events_link]alternate events link text[/events_link] which I can adapt to hold an image instead of anchor text, can this shortcode or the [event post_id=""] be adapted at all?

    Also, how can I show only future events and list them in order of date? Currently when I click on either event, links to past events are still there to be looked at, such as monte carlo

    Thanks ever so much!!


  2. agelonwl
    Posted 3 years ago #

    instead of placeholder #_EVENTLINK use this #_EVENTURL;
    e.g. <a href="#_EVENTURL">....

    you can use shortcode [events_list]your formats[/events_list]


  3. Marjolijn Harvey
    Posted 3 years ago #

    Hello agelonwl,

    1.Thanks ever so much!!
    I didn't realize I could use #_EVENTURL in an a href tag and that worked perfectly, I now have the whole div and the image linking to the single event page THANK YOU!

    2.My Event Page is already displaying events in the future. The problem is that once clicked, there are still older events in the previous/next links at the top. I tried using
    [events_list scope="future"]
    My current format
    but that made the current events display twice and still had the old events in the previous/next links at the top once an event had been clicked....

    Thanks for answering my first question though, hopefully someone will know how to fix questions two :-)

  4. qualsh
    Posted 3 years ago #

    Is there a way to use these placeholders in PHP, like in the same fashion as do_shortcode()?

  5. agelonwl
    Posted 3 years ago #

  6. ifurlo
    Posted 2 years ago #


    This Code Work Fine!

    <a href="#_EVENTURL">
    <img src="#_EVENTIMAGEURL" alt="Your Text" width="x" height="y"></a>

Topic Closed

This topic has been closed to new replies.

About this Plugin

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

About this Topic