Closed eur2 closed 11 months ago
Hello,
The simplest way to display events from multiple agendas is by using multiple [openagenda_filter_preview uid="123" size="6"]
shortcode, passing it the uids you need.
Or you could use a code like this :
$openagenda = new OpenAgenda( $uid, $atts, false, false );
ob_start();
include openagenda_get_template( 'preview-loop' );
$filter = ob_get_clean();
You could create a function with this code, and pass it the uids you need.
Hope that helps !
Hi, I'm trying to render a page with multiple openAgenda calendars. As openAgenda WP plugin is using one page by agenda/uid in Agendas post-type, I thought to use one extra classic page (outside Agendas) and getting each agenda page by using this kind of code:
I have put the shortcode
[openagenda]
in the agenda page content In my classic extra page (outside the agenda), I have this result:Cette page n’est pas une page agenda. Les événements s’afficheront peut-être de façon inattendue.
Is there any way to make it working? What would be the best way to render multiple agendas on a page? Many thanks in advance