Displaying filtered event's on a non-location page
-
Hi, I’m using the Events manager plugin to display each loations events on the locations page. This all works fine using this –
<?php $EM_location = em_get_location(); ?> <ul> <?php echo do_shortcode(' [events_list limit="4" location="' . $EM_location->location_id . '"] <li class="event"> <a href="#_EVENTURL"> <span>#_EVENTNAME</span> <p>#_EVENTTIMES</p> <p>#_EVENTDATES<br /></p> </a> </li> [/events_list]'); ?> </ul>
What I am now trying to do is display a certain locations events on a page that isn’t related to the events in anyway. I have tried by using the locations ID to display only that locations event’s but I can’t seem to get it to work. I tried to use –
<ul> <?php echo do_shortcode(' [events_list limit="4" location="159"] <li class="event"> <a href="#_EVENTURL"> <span>#_EVENTNAME</span> <p>#_EVENTTIMES</p> <p>#_EVENTDATES<br /></p> </a> </li> [/events_list]'); ?> </ul>
With 159 being the ID of the locations events I wanted to display but it just came up with no event’s, would you offer me a suggestion on what I could do?
Thanks, Harry.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Displaying filtered event's on a non-location page’ is closed to new replies.