• Resolved themast

    (@themast)


    This was something I had to work around awhile back, but I can’t confirm that it’s still a problem without possibly screwing up the podcast feed.

    My desire is to make podcast posts that have a small introductory paragraph, then a more tag, then the rest of the show notes. This way we don’t have podcast episode show notes taking up the entire front page of the website with all the details, but people can still get an overview of what the episodes are about.

    However, last time I tried that, the RSS feed created by SSP cut off the show notes right at the more tag, and I couldn’t figure out how to keep that from happening. I changed the setting for the RSS feed created by WordPress so that it doesn’t cut off at the more tag, but that didn’t affect SSP’s RSS feeds.

    Am I missing something? And if not, can there be a setting in SSP that lets the RSS feed ignore the more tags?

    The website is techreformation.com. Currently I have duplicate posts going on to work around this: one for the normal blog that has more tags, and invisible podcast entries that don’t have the more tag for the podcast feed.

    https://wordpress.org/plugins/seriously-simple-podcasting/

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter themast

    (@themast)

    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?

    Plugin Contributor Hugh Lashbrooke

    (@hlashbrooke)

    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!

    Thread Starter themast

    (@themast)

    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?

    Thread Starter themast

    (@themast)

    Or am I supposed to be editing something in YOUR code?

    Plugin Contributor Hugh Lashbrooke

    (@hlashbrooke)

    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.

    Plugin Contributor Hugh Lashbrooke

    (@hlashbrooke)

    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 🙂

    Thread Starter themast

    (@themast)

    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. 🙂

    Thread Starter themast

    (@themast)

    Bumping this up because I need to find a solution for this.

    Plugin Contributor Hugh Lashbrooke

    (@hlashbrooke)

    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

    Thread Starter themast

    (@themast)

    Thanks, I’ll see what I can figure out.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Issues with “ tag and RSS feed’ is closed to new replies.