Support » Plugin: Events Manager » Events list in a single event page

  • Hi,

    Can I use the events list shortcode within single event page to show “more events”?

    When I try, it displays a list of events – all with the name and image of the event from the single event page itself, is there a workaround?

    Thanks,
    Asaf

Viewing 15 replies - 1 through 15 (of 19 total)
  • Plugin Support angelo_nwl

    (@angelo_nwl)

    I tried the shortcode below under events > settings > formatting > events > single events page format

    
    [events_list scope="future" limit=5 pagination=1 event="-#_EVENTID" ]
    

    Thanks, but when I put formatting inside the shortcode it doesn’t work as expected.

    Any ideas?

    My code:

    [events_list scope="future" limit=5 pagination=1 event="-#_EVENTID"]
    <div class="event-item">
      <a href="#_EVENTURL">
        <figure>#_EVENTIMAGE</figure>
        <div class="event-date-and-time"><span class="event-date">#_{d.m}{is_long} - #@_{d.m}{/is_long}</span> <span class="event-time">#_24HSTARTTIME{has_time} - #_24HENDTIME{/has_time}</span></div>
        <h2 class="event-title">#_EVENTNAME</h2>
        <hr class="hr_color">
      </a>
    </div>
    [/events_list]
    Plugin Support caimin_nwl

    (@caimin_nwl)

    NetWebLogic Support

    What output are you seeing?

    Where are you using that code?

    A grid of identical events (as the page’s event) – https://382.e65.godaddywp.com/events/4th-sample-event/

    In: events > settings > formatting > events > single events page format.

    Plugin Support caimin_nwl

    (@caimin_nwl)

    NetWebLogic Support

    Try swapping the first line of the shortcode for this:

    [events_list scope="future" limit="5"]

    Same result.

    Any other ideas?

    Plugin Support caimin_nwl

    (@caimin_nwl)

    NetWebLogic Support

    It’s possible this is a conflict caused by your theme or another plugin. To check if it is, can you test with all other plugins deactivated and while running the default WordPress theme?

    I did.

    And also cleaned all other code from the “single events page format”.

    Same results.

    What else can we try?

    Plugin Support caimin_nwl

    (@caimin_nwl)

    NetWebLogic Support

    Can you post the complete code you’re now using for the single events page format?

    <div class="event-content">
      <div class="event-info">
        <h1>[event]#_EVENTNAME[/event]</h1>
        <div class="event-when">
          <h2>[wpml-string context="custom-strings" name="single-event_when_title"]When?[/wpml-string]</h2>
          <span class="event-date">#_{d.m}{is_long} - #@_{d.m}{/is_long}</span> | <span class="event-day">#l{is_long} - #@l{/is_long}</span> | <span class="event-hour">#_24HSTARTTIME{has_time} - #_24HENDTIME{/has_time}</span> <span class="event-when-note">#_ATT{When note}</span>
        </div>
        <div class="event-where">
          <h2>[wpml-string context="custom-strings" name="single-event_where_title"]Where?[/wpml-string]</h2>
          <span class="event-location-name">#_LOCATIONNAME</span>
        </div>
        <div class="event-details">
          <h2>[wpml-string context="custom-strings" name="single-event_details_title"]The details[/wpml-string]</h2> [acf field="event_details"]
        </div>
      </div>
      <div class="event-tickets-and-share">{has_bookings}
        <div class="event-tickets">
          <div class="vc_btn3-container vc_btn3-inline">
            <a class="vc_general vc_btn3 vc_btn3-size-md vc_btn3-shape-rounded vc_btn3-style-modern vc_btn3-color-turquoise" href="#_ATT{Tickets link}" target="_blank" title="">[wpml-string context="custom-strings" name="single-event_tickets_link-text"]Buy tickets[/wpml-string]</a>
          </div>
        </div> {/has_bookings}
        <div class="event-share">[addtoany]</div>
      </div>
    </div>
    [events_list scope="future" limit="5"]<div class="event-item">
      <a href="#_EVENTURL">
        <figure>#_EVENTIMAGE</figure>
        <div class="event-date-and-time"><span class="event-date">#_{d.m}{is_long} - #@_{d.m}{/is_long}</span> <span class="event-time">#_24HSTARTTIME{has_time} - #_24HENDTIME{/has_time}</span></div>
        <h2 class="event-title">#_EVENTNAME</h2>
        <hr class="hr_color">
      </a>
    </div>
    [/events_list]
    #_EVENTNOTES
    Plugin Support caimin_nwl

    (@caimin_nwl)

    NetWebLogic Support

    Thanks. Having done some more testing, I’ve found that the shortcode works correctly if it’s used without a closing tag. Like this, for example:

    [events_list scope="future" limit="5"]

    When used with a closing tag, it repeats the same event multiple times (as you found).

    I’m not sure why this would be and I’ve passed this thread along to the Dev team.

    Meantime, it might be possible to create a custom placeholder to do what you want that works along the lines of the #_CATEGORYNEXTEVENTS placeholder.

    Thanks.

    Any ETA?

    I need to deliver my site to a client soon…

    Thanks again,
    Asaf

    Plugin Support caimin_nwl

    (@caimin_nwl)

    NetWebLogic Support

    There’s no ETA on this, but I don’t think it will be seen as a high priority because no else seems to have reported it.

    Given that, you might want to investigate the alternatives I mentioned.

    OK, thanks.

    Can you please tell me where #_CATEGORYNEXTEVENTS is defined? So I can try to make my own placeholder based on it…

    I did a search on the plugin’s folder and couldn’t find the definition.

    Thanks again,
    Asaf

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘Events list in a single event page’ is closed to new replies.