• 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.

    https://wordpress.org/plugins/easy-load-more/

Viewing 1 replies (of 1 total)
  • Plugin Author Idiom

    (@brianbrey)

    Hi sajiddesigner,

    Thanks for downloading the plugin. Unfortunately, looking at your loop, I don’t believe this plugin is the best solution in this situation.

    The plugin only works on the main WordPress loop, so the index page, archive pages, and the search page. It will not work on custom loops on page templates.

    It should work however for custom post types, if you had an archive template for that post type, such as archive-{post_type}.php.

Viewing 1 replies (of 1 total)
  • The topic ‘Use Easy Load More with Custom Post Types’ is closed to new replies.