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.


<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'); ?>	
	<?php the_excerpt(); ?>
		<a href="<?php echo get_permalink(); ?>">Read More..</a>


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