WordPress ajax load more and infinite scroll

WordPress Infinite Scroll — Ajax Load More


Ajax Load More is the ultimate WordPress infinite scroll plugin for lazy loading posts, single posts, pages, comments and more with Ajax powered queries.

Build complex custom WordPress queries with 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 compatible for endless scrolling with popular eCommerce plugins such as WooCommerce and Easy Digital Downloads.


  • Shortcode Builder — Create your own custom 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!
  • 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).
  • Multiple Instances — You can include multiple instances of Ajax Load More on a single page, post or template.
  • Ajax Filtering — The Ajax Load More custom filtering method will allow you to filter and update your Ajax query results.
  • Multisite Compatibility — Manage repeater templates across all sites in your network.
  • Setting Panel — Customize your version of Ajax Load More by updating various plugin settings.

Check out the website for more information on the features and functionality of Ajax Load More.

What’s New

  • Elementor Add-on — Infinite scroll Elementor Posts Widget and WooCommerce widget content with Ajax Load More.
  • WooCommerce Add-on — Infinite scroll WooCommerce products without updating a line of template code.
  • Pro Bundle — Access to all premium Ajax Load More add-ons in a single installation.
  • Filters Add-on — The Filters add-on provides front-end and admin functionality for building and managing Ajax filters.
  • Advanced Custom Fields — Compatibility and integration added for infinite scrolling Flexible Content, Gallery, Relationship and Repeater fields for Advanced Custom Fields.
  • Masonry — Built-in support and functionality for Masonry layouts.
  • Progress Bars — Display a Progress Bar load indicator with each Ajax request.
  • Scroll Container — Constraining infinite scroll to a parent container.
Читайте также:  Картридж hp 130 совместимость

Типы содержимого

Ajax Load More can infinite scroll almost any content type WordPress offers — from blog posts to multipage content to WooCommerce products — Ajax Load More can handle it all.

Check out the examples below:


Ajax Load More accepts a variety of query and styling parameters that are passed to WordPress via shortcode or PHP function.

These parameters allow you to customize the content of your infinite scroll by selecting query parameters such as Post Types, Taxonomies, Categories, Tags, etc… you can also control interactive properties such as button labels, scrolling options and transition styles.

Shortcode Builder

The Ajax Load More Shortcode Builder provides an intuitive and easy-to-use admin interface that transforms complex WordPress queries into manageable shortcodes.

Example Ajax Load More Shortcode

Examples & Demos

  • Default — Out of the box functionality and styling.
  • Advanced Custom Fields — Infinite scroll Advanced Custom Fields data with Ajax Load More.
  • Attachments — Endless scroll post attachments.
  • CSS Grid — Rendering Ajax Load More listings with CSS GridRe.
  • Destroy After — Remove Ajax Load More functionality after ‘n’ number of pages.
  • Event Listing — Ordering and listing events by custom field date.
  • Filtering — Reset and filter an Ajax Load More instance.
  • Infinite Scroll — A look at the new loading functionality and styles.
  • Images Loaded — Download images before displaying ajax loaded content.
  • Masonry — Creating a flexible grid layout with Masonry JS.
  • Multiple Instances — Include multiple Ajax Load More’ on a single page.
  • Paging URLs — Generate unique paging URLs for every Ajax Load More query with the SEO add-on.
  • Pause Loading — Posts will not load until initiated by the user.
  • Preloaded Posts — Easily preload an initial set of posts before completing any Ajax requests to the server.
  • Progress Bar — Display a progress bar load indicator with each Ajax request.
  • Search Results — Returning results based on search terms.
  • Scroll Container — Constrain Ajax Load More to a parent container.
  • SEO & Paging — Combine these two add-ons to create one powerful navigation system.
  • Slideshow Gallery — Create a gallery of posts with Ajax Load More and the Paging add-on.
  • Table Layout — Ajax Load More will display query results in a table format.

Note: The Custom Repeater Add-On has been installed for use on each of our product demos.


The following add-ons are available to increase the functionality of Ajax Load More.

  • Cache: Improve website performance by caching the results of Ajax server requests.
  • Call to Actions: Extend Ajax Load More with advertisement and call to action content blocks.
  • Comments: Load and display WordPress blog comments using the core Ajax Load More infinite scroll functionality.
  • Custom Repeaters: Create, modify and delete repeater templates as you need them with absolutely zero restrictions.
  • Elementor: Add infinite scroll or load more to your Elementor Posts and WooCommerce listing widgets with Ajax Load More and the intuitive Elementor Widget Connector.
  • Filters: Front-end and admin functionality for creating, managing and displaying Ajax Load More filters.
  • Layouts: Predefined responsive layouts for Ajax Load More repeater templates.
  • Next Page: Infinite scroll multipage WordPress content with Ajax Load More and the Next Page add-on.
  • Paging: Replace the default lazy load/infinite scroll functionality of Ajax Load More with a numbered navigation system.
  • Preloaded: Load an initial set of posts before sending any Ajax requests to your server.
  • SEO: Generate unique paging URLs with each Ajax Load More query.
  • Single Post: Enable infinite scrolling of single posts on your WordPress post templates.
  • Theme Repeaters: Manage Ajax Load More repeater templates from within your current theme directory.
  • Users: Lazy loading WordPress Users with Ajax Load More.
  • WooCommerce: Infinite scroll WooCommerce products with Ajax Load More.
Читайте также:  0x8024402c код ошибки что это


The following free extensions are available to provide compatibility with popular WordPress plugins and core features.

  • Advanced Custom Fields: Display field type data with Ajax Load More.
  • Relevanssi: Display Relevanssi search results with Ajax Load More.
  • REST API: Enable compatibility with the WordPress REST API.
  • SearchWP: Display SearchWP query results with Ajax Load More.
  • Term Query: Infinite scroll WordPress Terms.

Callback Functions

Ajax Load More dispatches callbacks during various stages in the plugins lifecycle. Callback functions are dispatched directly from core Ajax Load More or one of the various add-ons.

Filter Hooks

Ajax Load More has a variety of WordPress filters in place that enable users to hook into Ajax Load More to insert or modify data.


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.
  • $alm_page — Returns the current page number.
  • $alm_item — Returns the current item number within your loop.
  • $alm_found_posts — Returns the total number of posts found within the entire WordPress query.

Please Review Ajax Load More!

Your reviews make a big difference! Please consider taking the time to review my plugin. Your ratings and reviews help the plugin grow and provide the motivation needed to keep pushing it forward.


  • Settings screen
  • Available Repeater Templates
  • Custom Repeaters Add-On
  • Shortcode Builder
  • Content Editor shortcode icon
  • Edit Page Shortcode Builder
  • Shortcode and implementation examples


How to install Ajax Load More.

Using The WordPress Dashboard

  1. Navigate to the ‘Add New’ in the plugins dashboard
  2. Search for ‘Ajax Load More’
  3. Click ‘Install Now’
  4. Activate the plugin on the Plugin dashboard

Uploading in WordPress Dashboard

  1. Navigate to the ‘Add New’ in the plugins dashboard
  2. Navigate to the ‘Upload’ area
  3. Select ajax-load-more.zip from your computer
  4. Click ‘Install Now’
  5. Activate the plugin in the Plugin dashboard

Using FTP

  1. Download ajax-load-more.zip
  2. Extract the ajax-load-more directory to your computer
  3. Upload the ajax-load-more directory to the /wp-content/plugins/ directory
  4. Activate the plugin in the Plugin dashboard

Часто задаваемые вопросы

What are the steps to getting Ajax Load More to display on my website

  1. Create your shortcode
  2. Add the shortcode to your page, by adding it through the content editor or placing it directly within one of your template files.
  3. Load a page with your shortcode in place and watch Ajax Load More fetch your posts.

What are my server requirements?

Your server must be able to read/write/create files. Ajax Load More creates the default repeater on plugin activation and in order to modify the output we are required to write to the file as well.

Is the ajax functionality secure?

Yes, Ajax Load more uses admin-ajax and nonces in order to protect URLs and forms from being misused.

Читайте также:  Regexp matches postgresql что это

Can I make modifications to the plugin code?

Sure, but please be aware that if modifications are made it may affect future updates of the plugin.

Can I modify the repeater template?

Yes, visit the Repeater Template section in your WordPress admin.

How are my repeater templates saved?

Repeater template data is saved into your WordPress database as well as written directly to a repeater template .php file in the ajax-load-more plugin directory.

Can I use custom fields in a repeater?

Yes, but you will need to define $post at the top of the repeater before requesting your custom fields. Like so:
global $post;theImplementationGuidehttpstheImplementationGuidehttpstheImplementationGuidehttpstheImplementationGuidehttpstheImplementationGuidehttpstheImplementationGuidehttpstheImplementationGuidehttpstheImplementationGuidehttpstheImplementationGuidehttpstheImplementationGuidehttpstheImplementationGuidehttps

Which browsers are supported?

  • Firefox (Mac, PC, iOS)
  • Chrome (Mac, PC, iOS, Android)
  • Safari (Mac, iOS)
  • Opera
  • Android
  • IE11+

How Can You Contribute?

Issues and pull requests can be submitted via GitHub.


WordPress Ajax Load More and Infinite Scroll


Custom post type Ajax load more is the flexible solutions for WordPress to load only some of the posts and another posts will be load with infinite scroll or load more and you can create beautiful blog listing quickly.

If you are looking for large number of posts listing in single page then Custom post type Ajax load more is the right choice.

Key Features

✅ Custom post type Ajax load more is the using WordPress standard query with the many parameters like Post Type, Post Status, Category Taxonomies and more.
✅ Setup security level, you can select post type and post status that only allow to load.
✅ You can create own template to customized listing behavior and overwrite into your theme easily.
✅ Lightweight, Faster and powerful performance.
✅ 3 types of inbuilt template layouts.

How to Use

Lightweight Custom post type Ajax load is very simple way to use, you just put short-code anywhere.


PHP Code:

Extend Functionalities

Developer can extend the functionalities using WordPress standard hooks and filters

Demos and Examples

You can find docs and more details about Custom post type Ajax load more on blacktheme.net


  • Ajax load more button screen grid view
  • Ajax load more button screen simple list
  • Infinite Scroll screen.
  • Ajax load more button screen advance grid view
  • General settings.


Easiest way:
1. Upload the plugin files to the /wp-content/plugins/plugin-name directory, or install the plugin through the WordPress plugins screen directly.
2. Activate the plugin through the ‘Plugins’ screen in WordPress
3. Use the Settings->Plugin Name screen to configure the plugin

Часто задаваемые вопросы

How to add Ajax load more in my website?

Put this shortcode [cpt_ajax_load_more] in your page content editor.

Can I create my own custom template?

Yes, Please read this article to add custom template

Can I restrict specific post type to allow?

Yes, in the settings menu of the Custom post type Ajax load more plugin.

Is the Ajax call secure?

Yes, Custom post type Ajax load more uses the WordPress standard nonce to protect the URL to direct access and also admin user can set permission to allow custom post type and post status.

How to override the system loop template file?

Create new folder called “cpt-alm” in the current theme .
Copy template file from plugins (wp-content/plugins/cpt-ajax-load-more/templates) and put in the current theme.