Seriously-Simple-Podcasting
Seriously-Simple-Podcasting copied to clipboard
Provide option to generate <itunes:summary> from excerpt
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.
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