Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

For some reason my RSS feed is repeating the site title twice without a space, obviously quite annoying.

BlognameBlogname for example.

Is there any hook i can use to have a custom title for the RSS Feed?

So i could have a title 'This is My RSS Feed for Blogname' or anything i wanted?

Is this possible or am i stuck with the double name.

Thanks for any help.

share|improve this question

1 Answer 1

up vote 0 down vote accepted

Edited: Bad answer removed.

Here is the working code:

function custom_blogname_rss($val, $show) {
    if( 'name' == $show )
        $out = 'Custom Blog Name';
    else
        $out = $val;

    return $out;
}
add_filter('bloginfo_rss','custom_blogname_rss', 10, 2);

Don't forget to change Custom Blog Name to something useful.

Put that code into a plugin.

share|improve this answer
    
Do you know how to alter the feed title for just one category? I currently get "Company >> Workers' Compensation" from my feed, but when displaying in a feed reader I need it to say "Company >> WorkCompEdge Blog". –  cmegown Jul 23 '12 at 21:45

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.