Support

Account

Home Forums Add-ons Gallery Field Return Media file not Attachment Page Reply To: Return Media file not Attachment Page

  • Thanks to James in support for the fix below:

    <?php $image_ids = get_field('gallery', false, false); 
    $shortcode = '[gallery link="file" ids="' . implode(',', $image_ids) . '"]'; 
    echo do_shortcode( $shortcode ); ?>

    Now works like a charm 🙂