• jamesthemonkeh

    (@jamesthemonkeh)


    Hello

    Is these a way to ensure iframe content is included on the RSS feed of a WordPress post?

    I have Soundcloud and Mixcloud iframes on the posts and would like them to be included on the RSS feed if possible?

    [ redundant link removed ]

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator bcworkz

    (@bcworkz)

    It’s up to the client app to fetch external content, so in this case the feed reader. Maybe some will do so, IDK. Certainly some will not, so there’s no way to “ensure” it is done in all cases. The most you can do is ensure CSP headers at the iframe source allow iframe requests universally in normal browser views.

    Thread Starter jamesthemonkeh

    (@jamesthemonkeh)

    Well the client app is a different website of mine.

    Currently I am using:

    include_once( ABSPATH . WPINC . '/feed.php' );
    			$rsslist = array(   'https://www.houseminimaltechnodisco.com/feed/'  );
    			$rsslist2 = array(   'https://www.djmixoftheweek.com/feed/'  );
    			// Get a SimplePie feed object from the specified feed source.
    			$rss = fetch_feed( $rsslist );
                $rss2 = fetch_feed( $rsslist2 );
    Moderator bcworkz

    (@bcworkz)

    So the feed consumer is not a reader, you are outputting feed content on your different site? That should work as long as the HTML tags are not escaped, in which case no HTML will work. Success is still dependent on proper CSP headers, which should be fine from audio sharing sites.

    That said, in your specific case, it doesn’t look like the audio elements are part of actual post content, they seem to be injected elements independent of post content. According to your feed output, post content begins after the audio and metadata elements. No iframes in the feed. This is similar to how featured images don’t work by default. Added code is needed to fetch featured images and include them in the feed.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Get Content Iframes on RSS Feed’ is closed to new replies.