Found a fix to the problem
simply, place ob_end_flush(); at the top of the script, and WordPress will no longer be
able to catch the output of the script, and won’t be able to do anything funny with it. It also seems to stop the page being cached, which is fine by me.
Related Posts:
- How to add featured image or custom field to xml feed?
- How do I Import an RSS feed as WordPress posts without duplicates?
- Rss error in first line of xml : not well-formed (invalid token)
- RSS/Atom feeds invalid, “Mismatched tag” errors
- WordPress content on non-WP site residing on a remote domain — how to display posts?
- accessing my mu-plugins from within a template file
- Embedded Feed Update
- Feed RSS problem on WordPress, need it for Google News
- WordPress Feed Error [closed]
- How to add post featured image to RSS item tag?
- How to get SimplePie fetch_feed without stripping iframe code?
- Firefox is downloading the RSS feed
- Why does Simplepie return feed items in a wrong order?
- How to create additional full text RSS feeds
- Multiple category RSS feeds
- How to flush feed? Or set timeout on feed so that it isn’t cached?
- is it possible to get complete wordpress blog post in a rss feed?
- Disable RSS Feed
- Reducing image size in RSS only
- Changing title of wordpress RSS feed
- Setting the language of RSS feed
- A function to fetch blog content via rss feed
- Make RSS think posts are new?
- Creating an RSS feed with all of the prior month’s posts
- Difference between the 4 Built in RSS Feeds?
- Tracking RSS subscribers in Google Analytics
- How to disable atom feed and only use RSS feed
- RSS feeds and wordpress?
- How to get more than 25 items via Simplepie RSS Feeds?
- How to remove RSS feeds from WordPress theme
- How to remove site link from each post in RSS feed / modify output of the_excerpt_rss()?
- Create Posts using Import>RSS/WXR/XML and pass values to Custom Fields
- How to Create RSS Feeds for categories in WordPress?
- Importing multiple RSS feed into WordPress and sorting them by date
- Delaying One RSS Feed in WordPress but Not the Others?
- Custom RSS does not work for categories and tags
- Unfamiliar query string in Google Search Console URL not found
- Grab YouTube Thumbnail AFTER Post?
- Inserting ads into wordpress default rss feeds
- How fetch_feed() works?
- RSS feed for the previous week’s posts
- Feeds not working on my wordpress site
- Various WordPress Feeds for Same Blog
- How often does the RSS widget get updates?
- Help needed to make my site as Aggregator
- Out of memory errors – anon-rss or file-rss?
- Publish an XML feed from a CPT with ACF fields?
- Custom RSS feed with custom url
- WordPress – Sync wordpress post with JSON feed
- Feed links not working even with add_theme_support(‘automatic-feed-links’)
- How can I remove a RSS feed that a WordPress plugin adds to `wp_head()`?
- Is there way to make conditional branch for Rss feed items?
- Problem with getting RSS because of authentication
- Fetch / Filter Items in RSS feed by a different parameter.
- Flush RSS Cache
- RSS Feed Sticky Post?
- Display image from an external rss feed on wordpress without plugins
- How can I provide a plaintext RSS feed?
- How to add logo to rss feed
- Passing feed URLs with “&” to fetch_feed()?
- WordPress update totally broke the install. Main page now displays empty rss feed
- How to change wordpress RSS to be in a specific format?
- Site Migration to WordPress: Handling Feeds
- How do I get my podcast feed created?
- get_item_quantity() Error When Fetching Feed
- Control time of addition of posts to RSS?
- RSS feed not Refreshes
- RSS Feeds not working in Chrome/ok in IE and Firefox
- Get RSS feed about plugin new update
- Issue with RSS Feed in Firefox and Safari
- Is a no RSS plugin setup supposed to work?
- WP Job Manager: adding Company and Location values to RSS feed
- What is the difference between these GUID’s in wordpress feed?
- Remove post content in RSS feed?
- RSS – This XML file does not appear to have any style information associated with it. The document tree is shown below
- Theme’s functions.php not called when rendering RSS feed
- Showing Taxonomy Terms in RSS Feed
- Modify RSS feed to change iframe structure
- Medium Rss feed is not parsing in wordpress
- RSS Feed has older items at the top
- RSS Feed cURL error 52?
- RSS Feed Shows NULL When Asking For Thumbnail
- Update postdata without creating duplicate on wp_insert_post from RSS feed
- How do I fix feed error?
- Category RSS Feed – Article Title not being detected
- Show only picture from post_content in custom RSS file
- Site requires login. How to publish login-free RSS feed?
- Importing large number of RSS feeds
- My wordpress blog RSS isn’t showing
- RSS Feed to contain posts from 1 category only
- wp_head hook content showing up at top of RSS feed
- How to use RSS reader plugin for displaying as posts? [closed]
- How to debug/diagnose RSS feed that’s not working?
- RSS Subscriber count
- images are broken
- How do I enable my WordPress website RSS feed? My site doesn’t seem to have an RSS feed
- WordPress Plugins Feed Error, but I’m not asking for a plugins feed
- WordPress not showing the latest articles in RSS feed
- WordPress Dashboard Incoming Links Error
- Remove or truncate site rss in