Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #17749

    HI, a while ago peter gave a solution to randomizing the slider order which seemed to work ok in the Choices theme when there are images in the post.

    http://www.kriesi.at/support/topic/randomize-slide-order-in-slider-for-choices-theme

    However in the Sentence theme when the post dosn’t have any image it comes up with an error:

    Warning: shuffle() expects parameter 1 to be array, boolean given in /helper-slideshow.php on line 32

    #96679

    Hey!

    Use following code instead:

    $this->slides = avia_post_meta($this->post_id, 'slideshow');
    if(is_array($this->slides)){
    shuffle($this->slides);
    }

    Regards,

    Peter

    #96680

    worked :)

    #96681

    Hey,

    Glad Dude could help. :)

    Regards,

    Ismael

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘RANDOMIZE SLIDE ORDER IN SLIDER FOR CHOICES THEME – part II’ is closed to new replies.