Ajax Load More is a powerful solution for infinite scrolling and lazy loading posts, custom post types, single posts, pages and comments with Ajax powered queries.
Build complex custom WordPress queries using the Ajax Load More shortcode builder then add the generated shortcode to your page via the content editor or directly into your template files.
Ajax Load More is fully compatible with popular eCommerce plugins such as WooCommerce and Easy Digital Downloads.
Shortcode Builder - Easily create your own Ajax Load More shortcode by adjusting the various WordPress query parameters in our easy-to-use shortcode builder (see Shortcode Parameters).
Query Parameters - Ajax Load More allows you to query WordPress by many different content types. Query by Post Type, Post Format, Date, Category, Tags, Custom Taxonomies, Search Term, Authors and more!!
Customizable Repeater Templates - Edit and extend the functionality of Ajax Load More by creating your own repeater template to match the look and feel of your website (see screenshots).
Setting Panel - Customize your version of Ajax Load More by updating various plugin settings (see screenshots).
Multiple Instances - You can include multiple instances of Ajax Load More on a single page, post or template.
Multisite Compatibility - As of Ajax Load More 2.7.2 you can now manage repeater templates across all sites in your network.
Ajax Load More accepts a number of parameters that are passed to the WordPress query. These parameters are transferred via shortcode - don't worry, creating your custom shortcode is simple with the intuitive Shortcode Builder
The following Add-ons are available to increase the functionality of Ajax Load More.
Cache
The Cache add-oncreates static HTML files of Ajax Load More requests then serves those static pages to your visitors without querying the database. Get More Information
The Comments add-on will load and display blog comments using the core Ajax Load More infinite scroll functionality. Get More Information
Custom Repeaters
The Custom Repeaters add-on will allow for unlimited repeater templates and provide the ability to create unique templates for different content types throughout your theme. Get More Information
Layouts
The Layouts add-on will provide a library of fully responsive layout templates ready for use on your website. Get More Information
Paging
The Paging add-on will transform Ajax Load More’s lazy load/infinite scroll functionality into a robust ajax powered navigation system. Get More Information
Preloaded
The Preloaded add-on will allow you to quickly and easily preload an initial set of posts before completing any Ajax requests to the server. Get More Information
The REST API add-on will enable compatibility between Ajax Load More and the WP REST API plugin. Get More Information
Search Engine Optimization
The SEO add-on will optimize your ajax loaded content for search engines and site visitors by generating standard WordPress paging URLs with each Ajax Load More query. Get More Information
The following functions are available to be dispatched by Ajax Load More.
ALM Complete - The almComplete() function is triggered after every successful ajax call made by Ajax Load More.
$.fn.almComplete = function(alm){
// Your on complete code goes here
};
ALM Done - The almDone() function is triggered after all posts have been loaded..
$.fn.almDone = function(alm){
console.log('All posts have been loaded!');
};
ALM Empty - The almEmpty() function is triggered if there are zero results returned in the initial query.
$.fn.almEmpty = function(alm){
console.log('Sorry, but we could not locate any posts that matched your criteria.');
};
ALM Filter Complete - The almFilterComplete() function is triggered after a successful call to the public function almFilter().
$.fn.almFilterComplete = function(){
console.log('Ajax Load More filter has completed!');
};
ALM URL Update - The almUrlUpdate() function is triggered after a successful URL update (pushState) from the Previous Post or the Search Engine Optimization add-on
$.fn.almUrlUpdate = function(permalink, type){
console.log("URL updated to " + permalink + '- dispatched from the '+ type + ' add-on.');
};
Filter Hooks
Ajax Load More has a variety of filters in place that enable users to hook into Ajax Load More to insert or modify data.
Variables
Ajax Load More passes the following PHP variables to each repeater template - these template variables can help you style and transform your repeater templates.
$alm_current - Returns the current item number in the current Ajax Load More loop and will reset to zero with every 'Load More' action.. 'echo $alm_current;'
$alm_page - Returns the current page number. 'echo $alm_page;'
$alm_item - Returns the current item number within your loop. 'echo $alm_item;'
$alm_found_posts - Returns the total number of posts found within the entire WordPress query. 'echo $alm_found_posts;'
Your ratings make a big difference! If you like and use Ajax Load More, please consider taking the time to rate my plugin. Your ratings and reviews will help this plugin grow and provide the motivation needed to keep pushing it forward.