Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #10254

    hi can configure Default Background Image Gallery at random? how?

    (only images that are in Default Background Image Gallery) no images of the portfolio

    change in the helper-slideshow.php file, the line ‘orderby’ => ‘menu_order ID’)); for ‘orderby’ => ‘rand’)), but that change all the images in random order (including the portfolio)

    sorry for my English

    thank you very much!

    #67420

    help me!!!

    #67422

    Hey!

    you could try it with an if else statement:


    if($this->settings == "bg_gallery")
    {
    $attachments = get_children(array('post_parent' => $attachment_holder,
    'post_status' => 'inherit',
    'post_type' => 'attachment',
    'post_mime_type' => 'image',
    'order' => 'ASC',
    'orderby' => 'rand'));
    }
    else
    {
    $attachments = get_children(array('post_parent' => $attachment_holder,
    'post_status' => 'inherit',
    'post_type' => 'attachment',
    'post_mime_type' => 'image',
    'order' => 'ASC',
    'orderby' => 'menu_order ID'));
    }

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

The topic ‘Default Background Image Gallery random?’ is closed to new replies.