Hi guys,
Does anyone know if such a thing exists?
I'm looking for a plugin that will generate a feed that contains a random post on my WordPress blog? (Not just random posts in the sidebar).
Any info would be much appreciated.
| SitePoint Sponsor |




Hi guys,
Does anyone know if such a thing exists?
I'm looking for a plugin that will generate a feed that contains a random post on my WordPress blog? (Not just random posts in the sidebar).
Any info would be much appreciated.






Thanks but I'm not looking for a random post plugin. I'm looking to create a random post XML FEED. So for example, I can display a random post on another site.
I haven't heard of a plugin but it doesn't sound like it would be too difficult to make.
Sara




Yup. Looks like I'm going to have to make it myself. You see where I'm going with it though.![]()


Depending on if you wanted a full-blown plugin with ACP control and wanted the "random" in addition to the "regular" feeds it looks like you could hack the
wp-atom.php, wp-rss.php, and wp-rss2.php files easliy enough. They all have the line
You could just change that, or maybe find out where $posts comes from and randomize that.PHP Code:<?php $items_count = 0; if ($posts) { foreach ($posts as $post) { start_wp(); ?>




Excellent. That's probably the easiest way. Cheers guys. I got what I needed.
Bookmarks