Skip to content

Instantly share code, notes, and snippets.

@imfromio
Created June 30, 2021 15:29
Show Gist options
  • Save imfromio/c4e4f1c3ffbbbb5eb38879844bb63521 to your computer and use it in GitHub Desktop.
Save imfromio/c4e4f1c3ffbbbb5eb38879844bb63521 to your computer and use it in GitHub Desktop.
Ajax Load More Settings
[ajax_load_more post_type="goric_products" posts_per_page="15" images_loaded="true" lazy_images="true" transition="masonry" masonry_selector=".grid-item" masonry_animation="slide-up"]
<div class="alm-item<?php if (!has_post_thumbnail()) { ?> no-img<?php } ?> grid-item">
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
<?php if ( has_post_thumbnail() ) { the_post_thumbnail('large', array( 'width' => 300, 'height' => 200 )); }?>
<h4><?php the_title(); ?></h4>
</a>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment