Tag Archives: Wordpress Function

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');

 

 

WordPress Blogroll Dropdown

Jill Salzman (momtrepreneur) asked me to create a dropdown blogroll for her blog to help cleanup a long list of bookmarks that she likes to share with her readers.

Here is an example of how the Blogroll Pulldown looks on her site.

Of course the first thing I always do is search for an existing WordPress Plugin or Function. While doing this search I came across The Information Gateway blog which has a post about just such a function to add a dropdown blogroll. I tried the code TIG has posted but there was a small problem with it, so I modified the code to get it working.

My revised code is available here, simply add the function to your themes function file, and make the appropriate call as outlined in the code.