• hello.
    I want to display the galley in the archive page.
    i use the code but it shows me only the first posts gallery
    <?php
    gallery_images = easy_image_gallery_get_image_ids(); foreach($gallery_images as $image_id) { // looping on user-selected attachment IDs
    $image_src = wp_get_attachment_url( $image_id ); // returns an array
    $image_thumb_src = wp_get_attachment_url( $image_id, ‘sliders’ ); // returns an array
    $alt_text = get_post_meta($image_id, ‘_wp_attachment_image_alt’, true);
    $caption = $image_id->post_excerpt; ?>
    <div class=”item”>
    <?php echo ‘<img src=”‘ . $image_src . ‘” class=”img-responsive” alt=”‘ . $alt_text . ‘”>’; ?>

    https://www.ads-software.com/plugins/easy-image-gallery/

  • The topic ‘display gallery in the archive page’ is closed to new replies.