WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
[resolved] How to filter times more precisely? (4 posts)

  1. Adrian Verstuyft
    Member
    Posted 1 year ago #

    Hi, I want to produce three columns with the events_list_grouped shortcode.
    1. Past events older than 1 month (from now on!)
    2. every event between the past month and the next month (from now on)
    3. Future events newer than 1 month (from now on)

    In one of the tutorials (Create Your Own Event Scope) you use
    $end_date = date('Y-m-d',strtotime("+1 day", current_time('timestamp')));

    Can I alter this using "-1 month" for 1. and "+1 month" for 3.?
    And how about Point 2?
    Where do I paste the "add_filter"-snippet?
    Or is there maybe an easier way?
    Thanks for your advice.

    http://wordpress.org/extend/plugins/events-manager/

  2. agelonwl
    Member
    Posted 1 year ago #

    have you tried to use scope e.g. [events_list_grouped mode="monthly" scope="next-month"]

    snippet should be pasted in your theme functions.php

    http://wp-events-plugin.com/documentation/event-search-attributes/
    http://wp-events-plugin.com/documentation/shortcodes/
    http://wp-events-plugin.com/tutorials/

  3. Adrian Verstuyft
    Member
    Posted 1 year ago #

    Thanks for your answer and yes, I used the shortcode, but the scope attributes are not precisely enough, or do I overlook something? For example can i use:
    [events_list_grouped mode="monthly" scope="next-2month"]

  4. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    yes, use scope="2-months"

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic