RSS feed title doubled
WordPress site under development, newly upgraded to WP 3.3.1, I am looking at the standard RSS feed for blog posts on the site. All works fine EXCEPT that the <title> tag for the site’s RSS <channel> definition has the blog name doubled, with no space between the two instances of the name. Here’s an excerpt from the generated code, taken from Firefox “view page source” of the feed page:
<channel> <title>Harbor Works weblogsHarbor Works weblogs</title> <atom:link href="http://sdssandbox.com/harborworks/wordpress/feed/" rel="self" type="application/rss+xml" /> <link>http://sdssandbox.com/harborworks/wordpress</link> <description>Gallery updates and guestbooks</description> <lastBuildDate>Mon, 16 Jan 2012 01:22:43 +0000</lastBuildDate>
Note the doubling of the name in the <title> tag. I’ve changed the site name in Settings> General several times, the name updates each time but continues to be doubled. After searching the Forum for similar issues I looked at the files that appear to generate the XML code for the RSS feed (/wordpress/wp-includes/feed-atom.php and /wordpress/wp-includes/feed-rss.php). Both contain the same line of HTML/PHP code:
<title type="text"><?php bloginfo_rss('name'); wp_title_rss(); ?></title>
Seems to me the two function calls are the source of the redundancy, as the names suggest that one is retrieving the blog name and the other the WP site title, and in this case they are the same. However, I have tried removing the “wp_title_rss()” invocation without having any effect on the output file.
1. Is, in fact, the apparently duplicate function call the source of my doubled blog name in the feed;
2. What’s the right way to get rid of the doubled name, since editing those two PHP files doesn’t have the desired effect?
- The topic ‘RSS feed title doubled’ is closed to new replies.