Use Easy Load More with Custom Post Types
-
Hello,
I am using Easy Load More Plugin with custom post types. I have following COde<div class="et_pb_portfolio_items_wrapper"> <div class="et_pb_portfolio_items"> <?php // query_posts('post_type=client_speak&posts_per_page=8'); query_posts('post_type=client_speak'); while( have_posts()) : the_post(); ?> <div class="et_pb_portfolio_item et_pb_grid_item csgridbox"> <a href="<?php the_permalink(); ?>"><span class="et_portfolio_image"><?php the_post_thumbnail('full'); ?> <div class="playicon"></div> </span></a> <h2><a href="<?php the_permalink(); ?>"> <?php $client_designation=get_field('client_designation'); if($client_designation){ echo '<span style="font-size: 21px;font-weight: 400;">'.$client_designation.'</span>';} ?><?php //the_title(); ?></a></h2> <p style="font-size: 16px;"><?php echo substr(get_the_excerpt(), 0,30); ?></p></div> <?php endwhile; ?> </div> <?php load_more_button(); wp_reset_query(); ?>
Now When i click Load More button, Instead of Showing Next posts it repeats already visible post on page.
Please confirm where i am doing mistake.Thank you.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Use Easy Load More with Custom Post Types’ is closed to new replies.