I’m using the event_espresso post type to list the different events on my page. Is there a way of limiting the results to only display events for the current month and the next month?
I have a few recurring events and it looks really bad when they’re all repeated down the page and hiding them with CSS isn’t the most efficient solution.
Regarding the limiting, as you are using the event_espresso post type, you would need to create a WP query ans use the post meta to limit the events (event_start_date for instance).
Regarding the recurring events, make sure that the Recurring Events Manager is up to date and then in that plugin folder there are some template files that can be used. These templates will only show a single event per series, and then on clicking the register button, will display a list of the possible dates.
You will need to:
Copy the templates in plugins/espresso-recurring/recurring-event-templates/ over to wp-content/uploads/espresso/templates/
Then add the CSS that is found in the readme.txt in the same folder to your themes style.css file or to a plugin such as My Custom CSS.
Viewing 1 reply thread
The support post ‘Display only events for current month and next.’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.
Support forum for Event Espresso 3 and Event Espresso 4.