Custom Template are used to change the styling and display the loaded of the content

There are 3 inbuilt templates exists in CPT Ajax load more plugin, and you can create own custom template by just creating one file.

Create Template File

Just create new file in your current theme with this path ‘themes/theme-name/cpt-alm/loop/your-template-name.php’.

Now we are creating new template for listing only title, posted date and excerpt.

simple-list.php

<div class="content-item">
	<h5><a href="<?php echo get_permalink(); ?>"><?php echo get_the_title(); ?></a></h5>
	<p class="entry-meta">
	<?php the_time('F d , Y'); ?>	
	</p>
	<?php the_excerpt(); ?>
	<div>
		<a href="<?php echo get_permalink(); ?>">Read More..</a>
	</div>
</div> 

Shortcode

[cpt_ajax_load_more post_type="post" template="simple-list"]