@britner BIG THX! Its works perfectly! I am so happy right now! You my personal Hero!
🙂
By “add a space” You mind this?
if(isset($pinnacle['home_slider'])) {
$slides = $pinnacle['home_slider'];
} else {
$slides = '';
uksort($slides, function() { return rand() > rand(); });
}
Unfortunately, it also does not work :/
@britner Thank You for help. I did as you did, but, unfortunately, it does not work. I see the error message: Warning: Invalid argument supplied for foreach() in /home/…/wp-content/themes/pinnacle/templates/home/flex-slider.php on line 46
Will you be so kind and tell me what I did wrong?
@ hannahritner, Thank You for the hint, but I thought about adding a “ranodm” line somewhere in the code, not an additional plugin.