• Resolved bnafz

    (@bnafz)


    Hi,

    We have a bunch of Podcast Episodes that are set as “Scheduled” within WordPress. These still appear within the feed, therefore are being published to iTunes.

    Is there a way to exclude these Scheduled Posts from being displayed in the feed?

    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Shawn

    (@shawnogordo)

    Please post a link to the PowerPress feed where the episodes have already posted so we can take a look.

    Thread Starter bnafz

    (@bnafz)

    Here is the link to the PowerPress feed: https://integrityresource.org/feed/podcast/

    The items that have a future pubDate are scheduled posts within WordPress.

    Thanks for the help!

    Plugin Author Angelo Mandato

    (@amandato)

    Hello @bnafz,

    I think your server does not have the correct date and time. When you schedule posts into the future they are not published until that date comes on the server itself. Many podcasters use the post schedule feature, WordPress will publish them with the built-in cron at that specified date/time. One other thought, maybe there is something taking your scheduled posts and making them public? I see the same issue with your blog feed https://integrityresource.org/feed/, which is not modified by PowerPress.

    Thread Starter bnafz

    (@bnafz)

    Thanks for pointing me in the right direction.

    I’m still not sure why my scheduled posts were being made public but I used the code below to fix my issue.

    function PublishedPostsFeed($query) {
    if ($query->is_feed) {
    $query->set(‘post_status’,’publish’);
    }
    return $query;
    }
    add_filter(‘pre_get_posts’,’PublishedPostsFeed’);

    Plugin Author Angelo Mandato

    (@amandato)

    Hello @bnafz,

    I am glad you found a solution but the fix you posted I am not sure if that’s a permanent solution. If you can diagnose by disabling plugins and your theme one by one until you figure out where the problem is coming from that would be optimal. Technically the query to get all posts from the database for a feed specifies that all posts have the ‘publish’ status. If the change you have fixes the issue, I would be suspect that the problem may be with a caching or a plugin or theme is trying to include additional posts with other status’s.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Exclude Scheduled Posts from Feed’ is closed to new replies.