• Resolved Hubrecht

    (@hubrecht)


    Is it possible to totally disable the RSS-feed? Ideally I would like to post new shows as Draft first, until they are announced. But that’s not possible right? So as a workaround we post new shows and put them on Cancelled, so they don’t show up on our website. But people can now still find the shows through the RSS-feed. I’ve disabled the RSS-feed icons, but a couple of fans are still subscribed to the RSS-feed. So if I could disable the RSS-feed that would be great. That way we can use the Cancelled option als a workaround for the lack of a Draft option. Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Barry

    (@barryhughes-1)

    Interesting question!

    It’s possible something like this would work:

    function disable_gigpress_feed() {
        exit();
    }
    
    add_action( 'do_feed_gigpress', 'disable_gigpress_feed', 5 );

    Essentially, it would short circuit things and prevent subscribers/those with the feed URL from receiving any feed data (and you might add this code either to a custom plugin – preferred – or else to your theme’s functions.php file).

    It may require some additional testing and refinement, but perhaps it will give you a starting point if nothing else.

    Thread Starter Hubrecht

    (@hubrecht)

    Thanks for your reply! Looks like the normal RSS feed doesn’t output anything now indeed. If I visit the URL in Chrome it only downloads an empty file. But the iCal link seems to still be working. Could you check? Thanks a lot!

    https://thedirtydaddies.com/?feed=gigpress-ical
    https://thedirtydaddies.com/?feed=gigpress

    Thread Starter Hubrecht

    (@hubrecht)

    Update: The plugin ‘Disable Feeds’ does a very good job!

    Barry

    (@barryhughes-1)

    Sounds like you’re all sorted, thanks for sharing the note re Disable Feeds ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Hide/Disable RSS feed’ is closed to new replies.