• For other people who want to auto-create the galery within a template file, you can find the shortcode id like this:

    $gallery_full = get_post_meta(get_the_ID(),'_easy_image_gallery_v2',true);
    $gallery_id = $gallery_full[0]['SHORTCODE'];

    Now you have in variable $galleryid the number of the shortcode.
    In your template file, lets say single.php you can use the following:

    if( function_exists( 'easy_image_gallery' ) ) {
        echo do_shortcode('[easy_image_gallery gallery='.$gallery_id.']'); }

    Good luck with it!

    • This topic was modified 2 years, 7 months ago by kees78.
  • The topic ‘Usage inside loop / template’ is closed to new replies.