• Resolved codenaga

    (@codenaga)


    The XML that is generated by podpress makes some crazy doubling in the <title>-Tag, which looks like this:

    Sorry

    This feed does not validate.

    line 14, column 27: Undefined named entity: raquo [help]

    <title>Dirty Minutes Left » Dirty Minutes Left</title>
    ^
    In addition, interoperability with the widest range of feed readers could be improved by implementing the following recommendation.

    line 29, column 27: Image title doesn’t match channel title [help]

    <title>Dirty Minutes Left</title>

    Whatever I do, I cannot get rid of the &raquo, and the double title and so the feed does not validate anymore.

    is there any workaround (that excludes writing my own XML-Feed) ?

    regards,
    codenaga

    http://ww.wp.xz.cn/extend/plugins/podpress/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author ntm

    (@ntm)

    That is a strange problem.
    The strange thing is that all of the RSS and ATOM feeds of your blog show the same problem.
    But podPress influences the <title> tag of a feed only if it is a category feed or podPress Feed. It does not modify the title of the main blog feed (e.g. example.com/feed or example.com/?feed=rss2).

    That is why I think it is possible that this particular problem is maybe caused by a different plugin or at least in combination with another plugin.
    Did you installed new plugins recently?
    Which other plugins do you use?

    Regards,
    Tim

    Plugin Author ntm

    (@ntm)

    The plugin (or theme) which modifies the titles of the feeds of your uses probably the action hook the_title_rss. Does any of the .php files of the plugins (besides podPress) contain this phrase? Which ones?

    Thread Starter codenaga

    (@codenaga)

    Hey Tim,

    thanks for the quick response!
    It is a strange problem indeed. if it helps: it occured first after updating podpress (from the second latest version I guess) to the current one. I updated wp-tweet-button simultaneously, but deactivated it afterwards.

    I have installed these plugins:
    akismet
    akismet-credit-inserter
    buddypress
    bwp-recaptcha
    comment-notifier
    flattr
    like
    podpress (of course)
    spam-free-wordpress
    wp-tweet-button
    wptouch

    none of these uses the phrase ‘the_title_rss’.

    Of my plugins, only these are constantly activated:
    akismet
    akismet-credit-inserter
    bwp-recaptcha
    flattr
    like
    podpress (of course)
    spam-free-wordpress
    wptouch

    I had another Feed-Problem with
    wp-tweet-button:

    line 123, column 0: style attribute contains potentially dangerous content: width:55px;height:22px;background:transparent url(‘http://www.dirtyminutesleft.de/wp-content/plugins/wp-tweet-button/tweetn.png&#8217;) no-repeat 0 0;text-align:left;text-indent:-9999px;display:block; (41 occurrences) [help]

    > http://www.feedvalidator.org/check.cgi?url=http://www.dirtyminutesleft.de/feed/podcast-feed/
    which was why I deactivated it prior to starting this thread.

    deactivating all of the plugins except podpress made (except for wp-tweet-button) no difference, the title-problem persisted. is it even possible for other plugins to interfere with yours if they’re deactivated?

    regards,
    Arne

    Plugin Author ntm

    (@ntm)

    Hello Arne,

    you are right. None of the plugins is responsible for the duplicate feed titles.

    It is your theme Graphene.

    The file /wp-content/themes/graphene/includes/theme-head.php includes a function which gets applied to the filter hook wp_title (see the laast line in that file add_filter( 'wp_title', 'graphene_title', 10, 3 ); ).

    The wp_title hook filter can be used to influence not all kind of titles like the title of a page. WordPress functions like get_wp_title_rss and wp_title_rss which create the title of the RSS and ATOM feeds use also the function wp_title which contains the hook with the same name. That is why the function graphene_title influences the feed titles too.

    In line 458 of the theme-head.php you can find the &raquo; which makes the feeds invalid. The problem is that such character entity references are almost not allowed in XML. besides 5 exception it is necessary to use the numerical entity reference (see http://en.wikipedia.org/wiki/Html_entities#XML_character_references). In this case it would be correct to use &raquo;. But the that will not change the doubled feed titles.
    Modifying the titles via Graphene Theme Options > Display > Miscellaneous Display Options seems also not helpful if it comes to the doubled titles.

    I guess since the modifications of the feed titles does not seem intentional, it would be okay to modify the section from line 452 to 459 in the file theme-head.php like this:

    if ( is_feed() ) {
    	$title = $default_title;
    } else {
    	if ( $graphene_settings['custom_site_title_content'] ) {
    		$title = $graphene_settings['custom_site_title_content'];
    		$title = str_replace( '#site-name', get_bloginfo( 'name' ), $title );
    		$title = str_replace( '#site-desc', get_bloginfo( 'description' ), $title );
    		$title = str_replace( '#post-title', $default_title, $title );
    	} else {
    		$title = $default_title . " &raquo; " . get_bloginfo( 'name' );
    	}
    }

    This will prevent the theme from modifying the title if a certain title is in a feed.

    Thread Starter codenaga

    (@codenaga)

    Your solution works like a charm!
    Absolutely awesome, Thank you very much! 🙂

    Regards,
    Arne

    Plugin Author ntm

    (@ntm)

    (You are not the only one who has noticed this problem. see http://ww.wp.xz.cn/support/topic/theme-graphene-problem-with-feedburner If you follow the link in this other thread you will see a different solution which will transform the html entity into its hexadecimal numeric reference. But I’m not sure whether it will help with the doubled feed titles.)

    Plugin Author ntm

    (@ntm)

    I’m glad that I could help.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘[Plugin: podPress] Title in Feed crashes validation’ is closed to new replies.