So I figured out that I CAN demonstrate what the difference is, and what the RSS feed does in both circumstances. Here’s the super feed to the website: feed://www.techreformation.com/feed/podcast
You’ll see two posts for each podcast. The one uses the more tag, because that’s what we want displayed on the main page of the website, but it also truncates the show notes in the RSS feed. The other is from the feed that we have feeding the podcast, and is a full, unadulterated version of the show notes, because it doesn’t use the more tag.
Can this be fixed so that any post containing the more tag can show the full content of the post in the RSS feed?
Apologies for the delay in responding here – December/January is always a tough time for getting involved in this forum for me.
The episode content in the feed simply uses WordPress’ own get_the_content_feed()
function, which ultimately uses get_the_content()
and is run through the the_content
filter.
I’m very hesitant to change this in the podcast feed template as I feel like that would be going against what people would normally expect. You should be able to, however, use the the_content
filter and do a conditional check for is_feed( 'podcast' )
and then force it to return the full episode content if the conditional returns true.
That should be a decent work around I think – let me know if it helps!
So what should the code look like? I’m not familiar at all with php, and while I could probably figure it out with trial and error, if you know exactly what it should look like, that’s even better. 🙂
Right now I’ve gotten to the get_the_content_feed section, it looks like this:
function get_the_content_feed($feed_type = null) {
if ( !$feed_type )
$feed_type = get_default_feed();
/** This filter is documented in wp-includes/post-template.php */
$content = apply_filters( 'the_content', get_the_content() );
$content = str_replace(']]>', ']]>', $content);
/**
* Filter the post content for use in feeds.
*
* @since 2.9.0
*
* @param string $content The current post content.
* @param string $feed_type Type of feed. Possible values include 'rss2', 'atom'.
* Default 'rss2'.
*/
return apply_filters( 'the_content_feed', $content, $feed_type );
}
Where should I put what?
Or am I supposed to be editing something in YOUR code?
Looking at this some more, the code from WordPress core should actually be giving you the full episode content I think. It bounces between a few different functions, but as far as I can tell you should be getting the full content there (or whatever you selected in your WordPress reading settings). The only reason you wouldn’t be getting the full content is if a different plugin (or your theme) was intercepting the content loading and forcing it to use the excerpt instead.
Side note: you should never edit code inside WordPress core or inside a plugin as updates will override your changes. That’s what the hook and filter system inside WordPress is for 🙂
Well, I already did throw this switch, for back when I just had the podcast running off the default RSS feed and wanted to use the more tag. But that setting doesn’t work for anything in your plugin, that’s the problem.
And I wondered about the editing the code inside the WordPress core. Thanks for the clarification there. 🙂
Bumping this up because I need to find a solution for this.
My apologies – this slipped off my radar as other support requests came in.
In the most recent update to SSP (v1.14.3) I have added some additional filters to the feed items specifically to allow you to modify the description and summary text on the fly. You can find all that info out on this new page of the documentation: https://www.seriouslysimplepodcasting.com/documentation/podcast-rss-feed-contents/ – that details all of the tags used in the feed, where the information in them comes from, and how you can filter/modify that information.
Any custom code you need to use those filters is beyond the scope of this support forum, but the existence of the filters is enough to allow you to do whatever you need to do in order to get things working like you need them to.
Cheers,
Hugh
Thanks, I’ll see what I can figure out.