Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #16888

    Hi:

    I noticed that the thread located at: http://www.kriesi.at/support/topic/default-background-image-gallery-random is CLOSED for further comments.

    But, I have a question related to exactly this topic. I would like the default background gallery to load images in random order. (An options pulldown box for display order when uploading any kind of galleries would be even better!…)

    Kriesi submitted a solution if / else statement that would apparently filter only the background gallery to load in random order. But, I don’t know where to try inserting that code into the includes / helper-slideshow.php file!?….

    The previous user said he tried editing the line ‘orderby’ => ‘menu_order ID’)); to read ‘orderby’ => ‘rand’))…..

    But, this ‘orderby’ line appears at least 2 times through the file.

    I am assuming Kriesi meant to substitute the if / else statement for the entire code block:

    $attachments = get_children(array(‘post_parent’ => $attachment_holder,

    ‘post_status’ => ‘inherit’,

    ‘post_type’ => ‘attachment’,

    ‘post_mime_type’ => ‘image’,

    ‘order’ => ‘ASC’,

    ‘orderby’ => ‘menu_order ID’));

    ?

    Thanks for reading!

    #93279

    Hi dishdesigner,

    You would need to replace that whole if statement. Lines 149-157. Though I tested it out and it doesn’t seem to work.

    I’ll tag Kriesi and Peter on this post and see if they have an additional thought on what it might take to get it to work as I wasn’t able to get it working in my testing.

    Regards,

    Devin

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

The topic ‘random background galleries’ is closed to new replies.