Support » Plugin: WP RSS Aggregator » Future Events

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hi,

    Yes, it is possible to show only future items by using this filter. Let me know if you have any queries.

    Regards

    Does this work only if you have the feed to post add-on? I’ve not been successful in getting it to work with the default feed display in the free version. The feed import shows all future events/feed items as “Scheduled” and is only recognizing ones from the past. When I employee the filter and have it set for “future” only, it is still only showing the past items.

    Plugin Author markzahra

    (@markzahra)

    Hi, I apologise for the wait.

    Can you please send us the URLs of the feed sources you’re using so that we can test them out on our end? This filter works with the core plugin of WP RSS Aggregator so it won’t require Feed to Post.

    I appreciate your help 🙂

    Here’s our feed:

    http://events.lasalle.edu/MasterCalendar/RSSFeeds.aspx?data=xK80F%2fbc%2f4UErlXy9atsf2tl3qdOlp4kIcUXOaU0AgqPR4J%2bAoUcyg%3d%3d

    And I used this code snippet in my theme’s functions.php file (36 being the ID of the feed source):

    // WP RSS Aggregator - Show future feed
    
    add_filter( 'wprss_display_feed_items_query', 'my_show_future_stories', 10, 2 );
    function my_show_future_stories( $args, $settings ) {
        if ($args['meta_query']['wprss_feed_id'] === 36) {
            $args['order'] = 'ASC';
            $args['post_status'] = array('future');
        }
        return $args;
    }

    Hi,

    Can you please check if the below code works fine for you ?

    // WP RSS Aggregator - Show future feed
    
    add_filter( 'wprss_display_feed_items_query', 'my_show_future_stories', 10, 2 );
    function my_show_future_stories( $args, $settings ) {
        if ( $args['meta_query'][0]['value'][0] === 36 ) {
            $args['order'] = 'ASC';
            $args['post_status'] = array('future');
        }
        return $args;
    }

    Nope 🙁 Past posts only.

    http://site.lasalle.edu/llama/rss-2/

    Hi,

    Please confirm whether future feed items are imported on your website. If yes, and they do not display even after using the above filter, I would recommend you to get in touch by opening a support ticket from here.

    Regards

    No. Only past items.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Future Events’ is closed to new replies.