WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
[resolved] How to pull RSS feed for 1week or 1month only (8 posts)

  1. mvaginger
    Member
    Posted 1 year ago #

    Can anybody pls help me to find a shortcut or shortcode how to make a clickable link which will give me feed from TODAY for a week of events.
    thank you.

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

  2. caimin_nwl
    NetWebLogic Support
    Posted 1 year ago #

    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:

    http://wordpress.org/support/topic/can-past-events-be-displayed-in-rss-feed?replies=16

  3. angelo
    NetWebLogic Support
    Posted 1 year ago #

    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: http://wp-events-plugin.com/documentation/using-template-files/

  4. mvaginger
    Member
    Posted 1 year ago #

    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, http://www.malifun.sk/udalosti/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.

  5. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    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'))

  6. mvaginger
    Member
    Posted 1 year ago #

    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.

  7. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    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

  8. mvaginger
    Member
    Posted 1 year ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags