• Hello,

    I am trying to integrate this plugin with my AJAX load more that will show 8 images in ACF gallery and then show 4 more every time the AJAX load more button is pressed.

    From what I have read it appears to be setup correct, would someone mind reviewing where I might have gone wrong? I will post code examples below.

    /* REPEATER TEMPLATE CODE */
    <?php
    global $post;
    $image = get_field(‘client_logos’, $post->ID);
    ?>

    <div class=”logo-image”>
    ” alt=”<?php echo $image[‘alt’]; ?>” />
    </div>

    /* SHORTCODE */
    <?php echo do_shortcode(‘[ajax_load_more preloaded=”true” preloaded_amount=”8″ posts_per_page=”4″ pause=”true” pause_override=”true” scroll=”false” button_label=”Load More” button_loading_label=”Loading…” acf=”true” acf_field_type=”gallery” acf_field_name=”client_logos” container_type=”div” transition=”fade” images_loaded=”true”]’); ?>

    I am also getting the following error in the console which is based in the ajax-load-more.min.js file.

    SyntaxError: Unexpected end of JSON input
    at parse (<anonymous>)
    at Qb (jquery.min.js:4)
    at A (jquery.min.js:4)
    at XMLHttpRequest.<anonymous> (jquery.min.js:4)

    Any help is greatly appreciated.

    Thanks in advance.

    Craig

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Gallery images not loading’ is closed to new replies.