Add Author to RSS Feed in WordPress

If you have multiple authors on a WordPress blog you may want to add the Author name to the RSS feed title.

Although the standard RSS feed file in WordPress contains the author if you view the RSS feed you will not be able to see the Author name through standard readers as it is not converted.

A good example is to look at a WordPress feed that uses Google Reader and you will not see the Author listed.

One solution of course is to change the WordPress Feed files, however, if you do this every time you update WordPress your change will get written over. The easier and better solution is to add the small snippet of code below to your WordPress Themes function file.

 

function wp_titlerss($content) {
global $wp_query;
$content = $content." by ".get_the_author();
return $content;
}

add_filter('the_title_rss', 'wp_titlerss');

 

 

3 thoughts on “Add Author to RSS Feed in WordPress”

  1. Thank you very much for posting this article. I used this code to add authors into my RSS feeds and i am very happy for that, it is really work

  2. thanks for sharing this article. it is very helpful code through it i can add authors into my RSS feeds.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>