• I’m trying to fix a problem where the feed title is duplicated. The source of the problem appears to be in the feed related files in /wp-includes, here the line in feed-rss2.php for example:

    <title><?php bloginfo_rss(‘name’); wp_title_rss(); ?></title>

    Other posts about this problem seem to refer to plugins or themes causing the problem (Yoast SEO plugin for example). I don’t have this plugin and I’ve also done a text search of my entire wordpress install (all folders) and the only places where either two of these names ‘bloginfo_rss’ and ‘wp_title_rss’ show up is in these feed files and where they are defined as functions (nothing is found in php files in the theme or plugin folders, only in wp-includes).

    I can easily solve the problem by just removing one of these two calls in all the feed files, but I assume that will be overwritten on the next upgrade of our blog, so not only is it hackish but it also could be reverted without someone knowing about it.

    Can someone explain why the feed title uses both bloginfo_rss(‘name’) and wp_title_rss if they are always going to be the same? If they aren’t really the same someone explain when they would be different and where in the dashboard I can find the editor for each of them? Settings->General is the only place I can see to edit the title.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Have you tried:

    – deactivating all plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    – switching to the default theme to rule out any theme-specific problems.

    resetting the plugins folder by FTP or PhpMyAdmin. Sometimes, an apparently inactive plugin can still cause problems.

    And why are you using an older version of WordPress? are you aware that your site is running a very significant risk of being hacked?

    @esmi,

    this problem occurs with actual WP 3.5.1 and standard themes as well
    your answer shows that you didn’t understand the problem as well

    the feed-templates are located in wp-includes and thus theme-independent

    mathewda is right, the blog name is doubled, in my case
    “WockenSolle – Knitting IntelligenceWockenSolle – Knitting Intelligence”
    because the tag “wp_title_rss();” delivers wrong content: not the title, but the blogname.

    That is a bug and it is not a problem of themes or plugins. The only chance to overwrite this behaviour is to de-activate the calls for the automatic feeds and create new ones

    I didn’t expect that this bug lives with WP for some versions now, but it does

    your answer shows that you didn’t understand the problem

    Pardon? This is not a bug in WordPress. It’s specific to your site. Did you try any of the suggestions I made above?

    cq3abn

    (@mprewitt3abn)

    There is little official documentation on this, and so it looks like a bug, but it’s not.

    Ordinary, the code:
    <?php bloginfo_rss('name'); wp_title_rss(); ?>

    …outputs like this:

    The first part, bloginfo_rss('name'); will output your blog’s name as defined in General settings. The second part, wp_title_rss(); will output your category/archive name (if you are viewing a category/archive) preceded by a predefined separator (?), which can be changed.

    It’s possible you have a plugin or theme function that is overriding the default behavior of the wp_title_rss() function, causing it to output the title (resulting in two titles). This is possible, since the wp_title_rss() function calls the standard wp_title function, so any plugin or function that modifies that, could throw it off.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Duplicate title in feeds’ is closed to new replies.