• Resolved Andrew

    (@andrewkantor)


    Hey, guys — I can’t get WP RSS Aggregator to show scheduled posts.

    The feed I’m using is an events feed: https://www.z2systems.com/np/feed?orgId=gpha

    I did all the setup, and I see about 46 items have been pulled in; all but two of them are scheduled for the future.

    I added the following to my functions.php, using the feed ID of 11317:

    
    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'] === 11317) {
            $args['order'] = 'ASC';
            $args['post_status'] = 'future';
        }
        return $args;
    }
    

    I then used the most basic shortcode possible:

    <?php
    echo do_shortcode( '[wp_rss_aggregator]' );
    ?>
    

    Still, it only displays the two non-scheduled posts. I figure I’m doing something very simple wrong, but I can’t figure it out. Help! (And thanks!)

Viewing 1 replies (of 1 total)
  • Hi Andrew,

    We apologize for the delay in replying due to a high load in our premium support lately.

    With regards to your question, do you have more than one Feed Sources, or is it just one?

    If you only have one Feed Source, can you please try to remove the Feed Source ID conditional?

    Here’s the code again without the conditional Feed Source ID:

    add_filter( 'wprss_display_feed_items_query', 'my_show_future_stories', 10, 2 );
    function my_show_future_stories( $args, $settings ) {
            $args['order'] = 'ASC';
            $args['post_status'] = 'future';
        return $args;
    }

    Please let us know if this works for you.

Viewing 1 replies (of 1 total)
  • The topic ‘Scheduled posts not displaying’ is closed to new replies.