![]() |
How-to: Random post order [WP]
I need to randomize all posts on my WP tube, but like every 1-2 days.
I'm not talking about adding just '&orderby=rand' parameter to the query, it shuffles posts with every page visit/reload and makes some videos appear on page1 and 2... Anyone? :helpme |
|
optionally, you can use a seed as an argument and store it as a variable so pagination will get the see and go from there. This is a great way to achieve what you're looking for, but I think it won't work well if you're using cache plugins (well, it will work but the purpose of cache plugins would be defeated)
edit: sorry, now I see you want this to change every couple days, not per session, so just go with Transients API, it's done for this exact purpose |
Thanks, that Transients API does exactly what I need :thumbsup
For those interested in this - How do I create a random post that will last for a day ( not tested ) |
Shit... I can't get it work :helpme
I have standard query on index.php like this: Quote:
Quote:
:helpme:helpme:helpme |
All times are GMT -7. The time now is 05:27 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc