Author RSS feeds

Tagged


This hack will query your database, returning all the authors and constructing the RSS feeds for each on the fly.  You can see it in action in my menu bar to the right, under RSS for each author.


Insert this into your my-hacks.php:


function author_rss() { global $tableusers; $query = ("SELECT user_nicename, user_nickname from $tableusers ORDER BY user_nickname"); $result = mysql_query($query); while ($data = mysql_fetch_row($result)) { echo "$data[1] ::
n"; } }


Then just throw this in your index page where you would like the list to appear:




That is all there is to it, as always here is a text file.