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

    Hi,

    Like the title says, is there a way to reverse the order of a flexible grid gallery in Flashlight, so that it displays newest images first (top) and oldest last (bottom)?

    #61560

    Hey,

    open up flashlight/includes/helper-slideshow.php and replace:

    $attachments = get_children(array('post_parent' => $attachment_holder['ID'],
    'post_status' => 'inherit',
    'post_type' => 'attachment',
    'post_mime_type' => 'image',
    'order' => 'ASC',
    'orderby' => 'menu_order ID'));

    with:

    $attachments = get_children(array('post_parent' => $attachment_holder['ID'],
    'post_status' => 'inherit',
    'post_type' => 'attachment',
    'post_mime_type' => 'image',
    'order' => 'DESC',
    'orderby' => 'menu_order ID'));

    This should reverse the order.

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

The topic ‘Reverse order of Flexible Grid gallery?’ is closed to new replies.