TypeError only on front page
-
Hi, when i call ajax load more in front (static) page it doesn’t work. I got an TypeError: t is null ajax-load-more.min.js:1:19220 when I call it on other pages it loads ok. I even change theme and disable all another plugin but problem still exist.
here is my Repeater Templates code
<?php global $post; ?> <div class="alm-gallery-img"> <a href="<?php echo $image['url']; ?>" class="popup"> <img src="<?php echo $image['sizes']['large']?>" alt="<?php echo $image['alt']; ?>" /> </a> </div>
and here is my loop
<?php $args = array( 'post_type' => 'tportfolio' ); $loop = new WP_Query( $args ); while ( $loop->have_posts() ) : $loop->the_post(); ?> <?php echo do_shortcode('[ajax_load_more preloaded="true" preloaded_amount="3" posts_per_page="3" scroll="true" button_label="Load More" button_loading_label="Loading..." acf="true" acf_field_type="gallery" acf_field_name="portfolio" container_type="div" transition="fade"]'); ?> <?php endwhile; ?>
on front page it load like that https://artwolf.pl/
on another page it’s load ok https://artwolf.pl/test2/what am I doing wrong ?
The page I need help with: [log in to see the link]
- The topic ‘TypeError only on front page’ is closed to new replies.