Custom Shortcode for Event Organizer
-
I’ve been trying to create a custom shortcode using Event Organizer’s eo_get_events function but limited my knowledge of PHP has left me high and dry. I can’t seem to pass an array to the function correctly.
This is about as far as I can get on my own:
// [custom:all_music] function mailpoet_shortcodes_custom_filter( $tag_value , $user_id) { if ($tag_value === 'all_music') { $replacement = eo_get_events(array( 'event_start_after'=>'yesterday', 'event_start_before'=>'+2 weeks' )); } return $replacement; } add_filter('wysija_shortcodes', 'mailpoet_shortcodes_custom_filter',10 ,2);
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Custom Shortcode for Event Organizer’ is closed to new replies.