henkendehenk
Forum Replies Created
-
@joneiseman both options doesn`t seem to work.
The post_id option gives a fatal error on the single event page.
The EM_events option returns 4 events with the current (also with the option exclude=77)
Here is a screenshot of the settings.No, I use the pagebuilder to lay out the content of the event. This content includes the shortcode to show 3 other events.
@joneiseman Thanks for helping to find a solution.
I have the shortcode in a Raw HTML element in the WPBakery Pagebuilder. Because the page builder gives me more options to arrange the event page as I wish.
I tried to map the php code into a new shortcode with the following functions.php code;add_shortcode( ‘tentooneventsblokken’, ‘tentoonevent’ );
function tentoonevent() {
$shorttentoon = do_shortcode(‘[events_list scope=future category=tentoonstellingen limit=4 exclude=’.$EM_Event->event_id.’]html items[/events_list]’);
return $shorttentoon;
}
But it doesn`t seem to work, as i see 4 events with the current event.Hi @joneiseman , That`s exactly what i want. 😉