Setting Shortcode to Include Events From Both Today and Future
-
Hello,
I am using Events Manager and am trying to make the events_list shortcode output both events occurring on the current day and events occurring in the future. What should I set the scope attribute to equal so that today’s events and future events are returned by the shortcode?
I don’t know how to retrieve the current date from WordPress in the regular text editor, so I can’t use the method using two comma-seperated dates for the scope attribute. I have tried using the following shortcodes, and none of them have outputted what I want:
[events_list]
[events_list scope="future"]
[events_list scope="today,future"]
[events_list scope="today&future"]
I would really like some help finding a solution for my problem, please. I can provide further information as necessary. Thank you!
This is the link to the Event Manager documentation for shortcodes: https://wp-events-plugin.com/documentation/shortcodes/
This is the link to the Event Manager documentation for search attributes: https://wp-events-plugin.com/documentation/event-search-attributes/
I am using WordPress version 5.2.2. and the most recent version of Events Manager. I am developing locally on my Mac using MAMP and Local by Flywheel.
- The topic ‘Setting Shortcode to Include Events From Both Today and Future’ is closed to new replies.