![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Industry Role:
Join Date: Aug 2009
Posts: 274
|
![]() 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? ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Industry Role:
Join Date: Jul 2001
Location: 127.0.0.1
Posts: 9,266
|
__________________
This post is endorsed by CIA, KGB, MI6, the Mafia, Illuminati, Kim Jong Il, Worldwide Ninjas Association, Klingon Empire and lolcats. Don't mess around with it, just accept it and embrace the truth |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Industry Role:
Join Date: Jul 2001
Location: 127.0.0.1
Posts: 9,266
|
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
__________________
This post is endorsed by CIA, KGB, MI6, the Mafia, Illuminati, Kim Jong Il, Worldwide Ninjas Association, Klingon Empire and lolcats. Don't mess around with it, just accept it and embrace the truth |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Industry Role:
Join Date: Aug 2009
Posts: 274
|
Thanks, that Transients API does exactly what I need
![]() For those interested in this - How do I create a random post that will last for a day ( not tested ) |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 | ||
Confirmed User
Industry Role:
Join Date: Aug 2009
Posts: 274
|
Shit... I can't get it work
![]() I have standard query on index.php like this: Quote:
Quote:
![]() ![]() ![]() |
||
![]() |
![]() ![]() ![]() ![]() ![]() |