you will need to edit lib/templates/home-feat-cat.php line 55 (similiar code in each cat clock)
$my_query1 = new WP_Query('cat='. $featcat1 . '&' . 'offset=' . '&' . 'showposts=' . $featcat1_count);
to
$my_query1 = new WP_Query('cat='. $featcat1 . '&' . 'offset=' . '&' . 'showposts=' . $featcat1_count . '&orderby=rand');
add &orderby=rand at the end
Thanks so much
I tried to change the line but nothing happens, the home page remains the same. Items are always arranged in chronological order. Is there a solution?
thanks
Link: http://www.pierpaolocorso.com
try this instead
&orderby=rand&order=ASC
or
&orderby=rand&order=DESC
nothing
I made the change and it worked only the first time , when I reloaded the page the items were the same.
I need that for each visit received, the items are arranged in random mode .
To have the same effect on all classes as I should proceed?
I’m sorry for the inconvenience but this would be a very important feature for me.
a hug from italy
Pierpaolo
well its working for me, the actual edited code would be like
$my_query1 = new WP_Query('cat='. $featcat1 . '&' . 'offset=' . '&' . 'showposts=' . $featcat1_count. '&orderby=rand&order=DESC');
make sure cache were cleared.
ok. The code on the line 55 is :
$my_query1 = new WP_Query(‘cat=’. $featcat1 . ‘&’ . ‘offset=’ . ‘&’ . ‘showposts=’ . $featcat1_count. ‘&orderby=rand&order=DESC’); ?>
but it does not work . I tried it with firefox and chrome , after cleaning every time, but it does not work
you can try going on http://www.pierpaolocorso.com
The edited file is still online
a hug
it works 🙂
i’m very very very very very happy
thankkkkkkksss