Is it possible to set a really short randomization time, or would that overload the website? I’ve tried using the code from the documentation, but editing the number to be minutes instead of hours:
add_filter(‘geodir_rand_seed’,’_my_geodir_rand_seed’);
function _my_geodir_rand_seed($rand_seed){
$rand_seed = get_transient( ‘geodir_rand_seed_custom’ );
// if we don’t have a transient then set a new one
if(!$rand_seed){
$rand_seed = time();
set_transient( ‘geodir_rand_seed_custom’, $rand_seed, 1 * MINUTE_IN_SECONDS );
}
// validate
$rand_seed = absint($rand_seed);
return $rand_seed;
}
The goal is to be able to have a sidebar widget that shows a listing, but I’d like it to show a different listing pretty much every time the user loads a new page. Is that possible?
Thanks!