Support » Plugin: Events Manager » How to pull RSS feed for 1week or 1month only

Viewing 7 replies - 1 through 7 (of 7 total)
  • caimin_nwl


    NetWebLogic Support

    There’s no way to do this directly but this post shows you how to override the default RSS template to create your own date range:

    try shortcode like [events_rss_link]RSS Feed[/events_rss_link] and then to use scope on rss you can modify template file at wp-content/plugins/events-manager/templates/templates/rss.php

    to use templates:

    Hello guys,
    I did copied the rss.php to right place, but I dont really know what to change to get displayed only the event from today for next 7 days.
    Here is the feed,
    it alway displays everything, I dont know what I am doing wrong.
    this is how I got it set
    $args = array(‘scope’=>’future’, ‘owner’=>false, ‘limit’=50>$page_limit, ‘page’=>1 );
    still I am getting also old event displayed. pls help.

    Plugin Author Marcus


    you probably need to change ‘scope’=>’future’ but you’d have to write a little php to calculate the date range as we don’t have a specific scope for 7 days, e.g.

    'scope'=>date('Y-m-d').','.date('Y-m-d', strtotime('+7 days'))

    Well the issue is that I have it set to “future” but it still showing all the events from beginning of JUN, ignoring todays date.

    Plugin Author Marcus


    not sure what more to say, the above works for me. if your events are showing from the start of the month I suspect there’s something else you’re doing to cause this behaviour

    Hello, thanx, the issue is I am not coder and to make little script for 7 days, is hard. I was hoping to use a “future” feature, but it ignores it at all, I must be doing something wrong or I dont…
    May be its taking a whole month no matter what date it is, it takes the current month, but then the “future” feature option doestn work, or?

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘How to pull RSS feed for 1week or 1month only’ is closed to new replies.