clickmarketing
Member
Posted 1 year ago #
Has someone already implemented a custom code to enable a monthly archive of events?
Example:
- January 2011
- February 2011
- March 2011
We need the code to do this, or better yet, someone who can code this kind of functionality.
Hope someone can help.
Thanks!
http://wordpress.org/extend/plugins/events-manager/
agelonwl
Member
Posted 1 year ago #
you can try to use this shortcode:
[events_list_grouped mode="monthly" scope="2012-01-01,2012-12-31"]#_EVENTLINK[/events_list_grouped]
http://wp-events-plugin.com/documentation/shortcodes/
clickmarketing
Member
Posted 1 year ago #
I see what you mean there. That is a good workaround but we want to do this automatically, not create an individual page for the months with this code.
use scope="3-month" or as needed
clickmarketing
Member
Posted 1 year ago #
How do you exclude from this code the events that has already happened?
[events_list_grouped mode="monthly" scope="2012-01-01,2012-12-31"]#_EVENTLINK[/events_list_grouped]
agelonwl
Member
Posted 1 year ago #
you can also use [events_list_grouped mode="monthly" scope="12-months"]#_EVENTLINK[/events_list_grouped]
clickmarketing
Member
Posted 1 year ago #
Sorry, I mean INCLUDE, not EXCLUDE.
agelonwl
Member
Posted 1 year ago #
using the same shortcodes, you can create additional search attributes `e.g. scope='12-months-all'; just paste your code to your theme functions.php
http://wp-events-plugin.com/tutorials/creating-custom-event-search-attributes/
http://wp-events-plugin.com/tutorials/
clickmarketing
Member
Posted 1 year ago #
Here is the URL: http://bit.ly/yatqYH
I used this code:
[events_list_grouped mode="monthly" scope="2012-02-01,2012-02-29"]#_EVENTLINK[/events_list_grouped]
It lists the events for February but it also includes the past events (events on feb. 10, feb. 11, etc). How can I show the 'future' events only and not the past events?
agelonwl
Member
Posted 1 year ago #
try using [events_list_grouped mode="monthly" scope="1-months"]#_EVENTLINK[/events_list_grouped] or see this docs http://wp-events-plugin.com/documentation/event-search-attributes/