Add author name to title in RSS feed (2 posts)

  1. GregK
    Posted 6 years ago #

    I have a multi-author blog. It's confusing for some people who access it through readers because they can't see who wrote the post.

    How can I add the author's name to the title *only* in the RSS feed?



  2. wlrdq
    Posted 6 years ago #

    I'm pretty new to WordPress, so someone may have a less intrusive way to do it.

    Looking at the code, I see the following:

    <title><?php the_title_rss() ?></title>
    <link><?php the_permalink_rss() ?></link>
    <comments><?php comments_link(); ?></comments>
    <pubDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_post_time('Y-m-d H:i:s', true), false); ?></pubDate>
    <dc:creator><?php the_author() ?></dc:creator>asdfasdf

    I think you could change the title tag to do what you want. Something like this:

    <title><?php the_author() ?> - <?php the_title_rss() ?></title>

Topic Closed

This topic has been closed to new replies.

About this Topic