Comments Rodolphe1150 started the conversationFebruary 22, 2019 at 2:10pmHi. I want to add a "Organizer page" for all event organizers on my website. I don't find a shortcode to show only the calendar of only one organizer of the upcoming events.Can you help me with that? 894Zhivko repliedFebruary 25, 2019 at 1:12pmHi, You will have to write some custom code. In your theme functions.php file add following code at the bottom: add_action('wp_footer', function() { ?> <script type="text/javascript"> (function ($) { if (typeof $.stecExtend !== 'function') { return; } $.stecExtend(function (m) { var filter = []; if (m.glob.options.organizer) { $.each(m.calData.eventsPool, function () { var event = this; if (this.organizers.length > 0) { $.each(this.organizers, function(){ if (this.name === m.glob.options.organizer) { filter.push(event); } }); } }); m.calData.eventsPool = filter; } }, 'onAddToEventsPool'); })(jQuery); </script> <?php}); Then in your shortcode add organizer attribute and insert the organizer name (case sensitive). Example: [stachethemes_ec organizer="John Doe"] It should display only events with this organizer. Stachethemes Developer1 Like Rodolphe1150 replied privately Rodolphe1150 replied privately Rodolphe1150 replied privately 894Zhivko repliedMarch 1, 2019 at 5:18pmReplace agenda_get_n with grid_per_click: [stachethemes_ec organizer="Babytwins" grid_per_click=4] Have you included the code I've sent you earlier in your theme functions.php file at the bottom because I don't see it on your page? Stachethemes DeveloperRodolphe1150 repliedMarch 2, 2019 at 10:01amYes, the custom code disapear... I didn't know that will happen after Theme update!It's works fine now. Thanks to you.Rodolphe1150 repliedMarch 11, 2019 at 10:51amHi.The shortcode [stachethemes_ec organizer="Babytwins" grid_per_click=4] was working since you give it to me but now I doesn't work anymore.What could be the problem?Kind regards.Rodolphe1150 repliedMarch 11, 2019 at 10:52amHere is the examples pages:https://www.pickactivity.com/listings/babytwins/https://www.pickactivity.com/listings/theatre-o-plus/Rodolphe1150 repliedMarch 11, 2019 at 2:51pmSorry, my fault. The update of my theme made by a friend delete the code on the php file again! Sign in to reply ...
Hi.
I want to add a "Organizer page" for all event organizers on my website.
I don't find a shortcode to show only the calendar of only one organizer of the upcoming events.
Can you help me with that?
Hi,
You will have to write some custom code.
In your theme functions.php file add following code at the bottom:
Then in your shortcode add organizer attribute and insert the organizer name (case sensitive).
Example:
It should display only events with this organizer.
Stachethemes Developer
Replace agenda_get_n with grid_per_click:
Have you included the code I've sent you earlier in your theme functions.php file at the bottom because I don't see it on your page?
Stachethemes Developer
Yes, the custom code disapear... I didn't know that will happen after Theme update!
It's works fine now. Thanks to you.
Hi.
The shortcode [stachethemes_ec organizer="Babytwins" grid_per_click=4] was working since you give it to me but now I doesn't work anymore.
What could be the problem?
Kind regards.
Here is the examples pages:
https://www.pickactivity.com/listings/babytwins/
https://www.pickactivity.com/listings/theatre-o-plus/
Sorry, my fault. The update of my theme made by a friend delete the code on the php file again!