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

  1. Adrian Verstuyft
    Posted 3 years 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.


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


  3. Adrian Verstuyft
    Posted 3 years 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 3 years ago #

    yes, use scope="2-months"

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Events Manager
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic