Scheduled posts not displaying
-
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)
Viewing 1 replies (of 1 total)
- The topic ‘Scheduled posts not displaying’ is closed to new replies.