Jump to content

RSS & PHP - Display Random Articles?


itsinmyhead

Recommended Posts

So, I've got some RSS feeds setup. An example: http://www.adkpennysaver.com/rss/rssfeed.php

 

If you go to that page and refresh, you'll see that the listings are displayed in a random order. However, if you add them to your iGoogle/whatever page, they aren't displayed in a random order - they're displayed in whatever order they were shown on the above page. Even with refreshing your homepage/whatever page the feed is displayed on, the results do not change order.

 

Is there a way to get these to resort randomly each time someone accesses it on their homepage? It's pretty beneficial that the results are displayed in a random order so that all of the ads have a chance to be seen rather than just a few static ones.

 

Thanks!

Link to comment
https://forums.phpfreaks.com/topic/153366-rss-php-display-random-articles/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.