• Resolved bwdgroup

    (@bwdgroup)


    We are using an image gallery field which has the option to sort the images into a custom order but cannot see how to output this same order within our custom template.

    We are using get_posts to retrieve these images using custom $args, as this example which is currently sorting the attachments by title and ASC.

    $args = array(
    'order' => 'ASC',
    'orderby' => 'title',
    'post_type' => 'attachment',
    'post_parent' => $post->ID,
    'post_mime_type' => 'image',
    'post_status' => null,
    'exclude' => get_post_thumbnail_id(),
    'numberposts' => -1,
    );

    The questions is how do we sort using the custom order from within the modified post ?

    Thank you

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Image Gallery – Custom Order’ is closed to new replies.