Posted By

andrewkhunn on 06/29/09


rss feed wordpress author

Versions (?)

Who likes this?

2 people have marked this snippet as a favorite


Display WordPress Author RSS Feed on Author Pages Only

 / Published in: PHP

  1. <?php if (is_author()) { ?><?php $author = get_userdata(get_query_var('author')); ?><link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> - <?php echo $author->display_name; ?>" href="<?php bloginfo('url'); ?>/author/<?php echo $author->user_nicename; ?>/feed/" /><?php echo "\n"; } ?>

Report this snippet  

You need to login to post a comment.