So I would like to use the CiviCRM events in wordpress, in a page listing multiple events, using the shortcodes. If I create a page in wordpress with the following:
[civicrm component="event" id="584" action="info" mode="live"]
It is fine, it will display the single event. However, if i was to add another event into the page, it doesn't display. Ideally I would like to use this shortcode inside of Advanced Custom Fields. The reason for doing this is we need to display only certain events for a page which members are logged in to view.
<?php
if( have_rows('events') ): ?>
<ul>
<?php while( have_rows('events') ): the_row(); ?>
<li><?php var_dump(get_sub_field('event')); ?></li>
<?php endwhile; ?>
</ul>
<?php endif; ?>
The vardump above literally returns null. Any ideas how I can do this. I am aware of the civievent wiget but that lists all events that are upcoming.
Just to clarify this is for civicrm 4.5.4. Cheers.