load-more-posts icon indicating copy to clipboard operation
load-more-posts copied to clipboard

Loader doesn't retrieve any post

Open Fibbon opened this issue 8 years ago • 0 comments

Hi!

I'm trying to use your plugin, but it seems that can't retrievies any post. It show only the first posts but when I click the button it return always "Something goes wrong"

I've set the loader for load the post of a WP_Query: <?php $query_args = array( 'post_type' => 'post', 'posts_per_page' => 3 ); $wp_query = new WP_Query( $query_args ); ?> <?php if ( $wp_query->have_posts() ) : ?> <?php while ( $wp_query->have_posts() ) : $wp_query->the_post(); ?> <?php get_template_part('template-parts/test' ); ?> <?php endwhile; endif; ?> <?php wp_reset_query(); ?> <p class="text-center"> <?php load_more_button( '/template-parts/lutum', 'Carica più articoli' );?> </p>

What can I try, please, to solve this issue?

Fibbon avatar Mar 01 '18 10:03 Fibbon