random rss feed generator?

4 replies
hello,

i need a random rss feed, so every time that i will refresh the rss url i will get a new quote or saying (maybe from a simple database - txt file or excel file).

is there any way i can do it without too much programming?

alternatively, is there any free wordpress plugin that can post randomly within few minutes interval from a pre-made posts or database?

thanks!
#feed #generator #random #rss
  • Profile picture of the author Diversion52
    So when anybody refreshes the RSS there will be a new quote added to the feed? As in everyone subscribing to the feed will get that new quote? That doesn't really make sense to me.

    Can you explain what it is that you're trying to accomplish?
    {{ DiscussionBoard.errors[7941725].message }}
    • Profile picture of the author cpa-money
      Originally Posted by Diversion52 View Post

      So when anybody refreshes the RSS there will be a new quote added to the feed? As in everyone subscribing to the feed will get that new quote? That doesn't really make sense to me.

      Can you explain what it is that you're trying to accomplish?
      yes a new quote will be added to the feed (the feed will have only one quote at a time so the last one will be delete).

      nobody need to subscribe to this feed, i just need to syndicate it to my chain of blogs every few minutes as a new post.
      {{ DiscussionBoard.errors[7942462].message }}
  • Profile picture of the author Diversion52
    Here's something to get started. Check this article out for creating a RSS feed with PHP Create an RSS feed with PHP - Carron Media

    Instead of just going through the tables and listing them out, you can query the table and randomly select on of them to display. You can actually randomize it while querying the database with something like
    Code:
    SELECT * FROM mytable ORDER BY rand() LIMIT 1
    But that should only be used for small databases (about 100 rows). If you're going to use a bigger database, use PHP to randomize a number to select the random row.
    {{ DiscussionBoard.errors[7943489].message }}
  • Profile picture of the author lordspace
    Hi,

    Actually, you can take a look at default WordPress installation. There is a plugin called "Hello Dolly" which outputs random text. Maybe you use that as a starting point.

    WordPress › Support » Feed for Custom Post Types
    Signature

    Are you using WordPress? Have you tried qSandbox yet?

    {{ DiscussionBoard.errors[7944210].message }}

Trending Topics