WordPress.org

Ready to get started?Download WordPress

Forums

Seriously Simple Podcasting
Subtitle Too Long (6 posts)

  1. colinmcgray
    Member
    Posted 7 months ago #

    Hi Hugh,

    Slightly strange one here - I have a Podcasting site within my multisite that is experiencing an iTunes Subtitle error. I had assumed all subtitles for each episode were copied from the main Podcast Subtitle field, but having looked into a few it seems it's copying the subtitle from the body text of the Podcast post.

    This seems fine for most, but I have one post which is going over length, as you can see here: http://validator.w3.org/feed/check.cgi?url=http%3A%2F%2Fwww.thepodcasthost.com%2Fscottnash%2F%3Ffeed%3Dpodcast

    How are the iTunes subtitles supposed to work? Your help would be much appreciated,
    Colin

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

  2. briandunaway
    Member
    Posted 4 months ago #

    Any luck with this Colin?

    I have been experiencing the same problem.

  3. colinmcgray
    Member
    Posted 4 months ago #

    No, sorry, still having the same problem!

    Surprised Hugh hasn't got back.. he's usually pretty prompt.

  4. briandunaway
    Member
    Posted 4 months ago #

    I got some help from a friend using add_filter but I haven't gotten the complete solutions yet. Also, I don't like messing with functions if I can help it. Cause I'll forget what I did and update something and it will break. :)

    What I have so far -

    add_filter( 'the_title', function(){
    if( is_feed() && 255 <= strlen( $title ) ) {
    $title = substr( $title, 0, 252 ) . '...';
    }
    return $title;
    } );

  5. briandunaway
    Member
    Posted 4 months ago #

    Yeah. Ignore all that jazz I posted. That is only good for the titles. I do not see a way to add_filter to <itunes:subtitle> which is what we are wanting to shorten.

  6. briandunaway
    Member
    Posted 4 months ago #

    I think Hugh is busy doing some cool stuff:

    http://www.hughlashbrooke.com/complete-versatile-options-page-class-wordpress-plugin/

    also, I was able to ugly fix my problem.

    I changed Line 288 in wp-content/plugins/seriously-simple-podcasting/templates/feed-podcast.php

    From This:
    <itunes:subtitle><?php echo $itunes_excerpt; ?></itunes:subtitle>

    To This:
    <itunes:subtitle><?php echo $subtitle; ?></itunes:subtitle>

    Not sure what else this may break. But it worked for my case. For now.

Reply

You must log in to post.

About this Plugin

About this Topic