WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
Monthlu Archive of Events (10 posts)

  1. clickmarketing
    Member
    Posted 2 years 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/

  2. agelonwl
    Member
    Posted 2 years 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/

  3. clickmarketing
    Member
    Posted 2 years 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.

  4. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 2 years ago #

    use scope="3-month" or as needed

  5. clickmarketing
    Member
    Posted 2 years 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]

  6. agelonwl
    Member
    Posted 2 years ago #

    you can also use [events_list_grouped mode="monthly" scope="12-months"]#_EVENTLINK[/events_list_grouped]

  7. clickmarketing
    Member
    Posted 2 years ago #

    Sorry, I mean INCLUDE, not EXCLUDE.

  8. agelonwl
    Member
    Posted 2 years 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/

  9. clickmarketing
    Member
    Posted 2 years 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?

  10. agelonwl
    Member
    Posted 2 years 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/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic