• Resolved crabbycrabbersen

    (@crabbycrabbersen)


    Hi there,

    I’ve spend some time with no efforts trying to display a list of upcoming events in a specific location on this location’s single page.

    I tried it with short tags in single-location.php:

    <?php echo '<ul>'.do_shortcode('[events_list limit="20" orderby="event_start_date" order="ASC" scope="future" location="'.$post->ID.'"]<li>#_EVENTLINK [#_EVENTDATES]</li>[/events_list]').'</ul>';?>

    Can anyone give me a hint please?

    Greetings,
    Crabby

    https://www.ads-software.com/plugins/events-manager/

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

    (@angelo_nwl)

    you can try something like

    [events_list limit="20" orderby="event_start_date" order="ASC" scope="future" location="'.$EM_Location->location_id.'"]
    <li>#_EVENTLINK [#_EVENTDATES]</li>
    [/events_list]

    note: location search attribute should be the location id

    Thread Starter crabbycrabbersen

    (@crabbycrabbersen)

    I’m still stuck with this one.. How to get the location’s id on the location’s detail page?

    Thread Starter crabbycrabbersen

    (@crabbycrabbersen)

    I’m on my theme’s single-location.php which displays one location.

    If I fetch
    $location=em_get_location($post->ID, 'post_id'); print_r($location);,
    I get the correct title, but the location id is empty.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Show upcoming events in location single page’ is closed to new replies.