Seriously-Simple-Podcasting icon indicating copy to clipboard operation
Seriously-Simple-Podcasting copied to clipboard

Provide option to generate <itunes:summary> from excerpt

Open adambirds opened this issue 6 years ago • 1 comments

Provide an option to generate the itunes:summary tag from the excerpt. And if excerpt is empty to fall back to content.

Currently, I have had to manually edit the feed-podcast to be the below:

// iTunes summary is the full episode content, but must be shorter than 4000 characters
ob_start();
the_excerpt_rss();
$itunes_summary = mb_substr( ob_get_clean(), 0, 3999 );
$itunes_summary = apply_filters( 'ssp_feed_item_itunes_summary', $itunes_summary, get_the_ID() );
$gp_description = apply_filters( 'ssp_feed_item_gp_description', $itunes_summary, get_the_ID() );

Instead of

// iTunes summary is the full episode content, but must be shorter than 4000 characters
$itunes_summary = mb_substr( $content, 0, 3999 );
$itunes_summary = apply_filters( 'ssp_feed_item_itunes_summary', $itunes_summary, get_the_ID() );
$gp_description = apply_filters( 'ssp_feed_item_gp_description', $itunes_summary, get_the_ID() );

The ability to give user's a choice in which to use in the settings would be great.

adambirds avatar Jan 28 '19 23:01 adambirds

Have we got anywhere on this one yet. I'd really like to be able to get this out of my child theme and back to being the correct V file. @jonathanbossenger

adambirds avatar Mar 16 '21 01:03 adambirds