Skip to main content
  • Home
  • WordPress Plugins
    • Ajax Load More Infinite scroll WordPress posts, pages and more
    • Block Manager Remove unwanted blocks and patterns from the Block Inserter
    • Easy Query Create a custom WordPress query in seconds
    • Instant Images Upload photos from Unsplash, Openverse, Pexels, and Pixabay directly to your media library
  • Blog
  • About
  • Account
  • Cart

Ajax Load More Logo

  • Ajax Load More
  • Add-ons
    • Cache
    • Call to Actions
    • Comments
    • Custom Repeaters
    • Elementor
    • Filters
    • Layouts
    • Next Page
    • Paging
    • Preloaded
    • Query Loop
    • Search Engine Optimization
    • Single Posts
    • Theme Repeaters
    • WooCommerce
    • Ajax Load More Pro Get instant access to all premium add-ons in a single installation
  • Extensions
    • Advanced Custom Fields
    • Relevanssi
    • REST API
    • SearchWP
    • Terms
    • Users
  • Examples
    • Default
    • Advanced Custom Fields
    • CSS Grid
    • Event Listing
    • Filtering
    • Images Loaded
    • Masonry
    • Multiple Instances
    • Preloaded Posts
    • Progress Bar
    • Search Results
    • WooCommerce
    • View All 30+ Ajax Load More usage examples
  • Docs
    • Add-ons
    • Archives
    • Callback Functions
    • Code Samples
    • FAQs
    • Filter Hooks
    • Implementation Guide
    • Implementation Methods
    • Loading Styles
    • Masonry
    • Parameters
    • Public JS Functions
    • Repeater Templates
    • Results Text
    • Screenshots
    • Shortcode Builder
    • Stylesheets (CSS)
    • Variables
  • Support
  • Download
DocumentationOnline documentation for Ajax Load More

Documentation

  • Add-ons
    • Cache
    • Filters
    • Next Page
    • Paging
    • Search Engine Optimization
    • Single Posts
    • Users
    • WooCommerce
  • Archives
  • Callback Functions
    • almComplete()
  • Code Samples
    • Author Archives
    • Category Archives
    • Custom Fields
    • Date Archives
    • Date Comparison
    • Date Query
    • Exclude Posts
    • Exclude Password Protected Posts
    • Loading via Ajax
    • Order by Meta Key with Meta Query
    • Ordering by Meta Query
    • Ordering by Multiple Fields
    • Passing Variables
    • posts_where
    • pre_get_posts
    • Random Ordering
    • Related Posts
    • Sticky Posts
    • Tag Archives
    • Taxonomy Archives
  • Date Query
  • Frequently Asked Questions
  • Filter Hooks
  • Implementation Guide
  • Implementation Methods
  • Loading Styles
  • Masonry
  • Parameters
  • Public JS Functions
  • Repeater Templates
  • Results Text
  • Screenshots
  • Shortcode Builder
  • Stylesheets (CSS)
  • Table of Contents
  • Variables
  • Documentation Home

Code Samples

In this Section

Author Archives

Displaying posts by author.

Category Archives

Displaying posts by category.

Custom Fields

Accessing custom fields in Repeater Templates.

Date Archives

Displaying posts by date.

Date Comparison

Comparing posts between two custom field dates.

Date Query

Querying posts with the WP_Date_Query class.

Exclude Password Protected Posts

Excluding posts that require a password.

Exclude Posts

Excluding posts from a previous query.

Loading via Ajax

Load and initiate an Ajax Load More instance with Ajax.

Order by Meta Key with Meta Query

Extending Ajax Load More to order posts by custom field key.

Ordering by Meta Query

Extending Ajax Load More to order posts by meta query clause.

Ordering by Multiple Fields

Extending Ajax Load More to order posts by multiple fields.

Passing Variables

Accessing page level variables in Repeater Templates.

posts_where

Modifying an Ajax Load More query with a posts_where clause.

pre_get_posts

Modifying an Ajax Load More query with pre_get_posts.

Random Ordering

Infinite scroll posts by random order.

Related Posts

Displaying related posts by category.

Sticky Posts

Working with sticky posts in an Ajax Load More listing.

Tag Archives

Displaying posts by tag.

Taxonomy Archives

Displaying posts by taxonomy term.

  • Ajax Load More
  • Add-ons
    • Cache
    • Call to Actions
    • Comments
    • Custom Repeaters
    • Elementor
    • Filters
    • Layouts
    • Next Page
    • Paging
    • Preloaded
    • Query Loop
    • Search Engine Optimization
    • Single Posts
    • Theme Repeaters
    • WooCommerce
    • Ajax Load More Pro Get instant access to all premium add-ons in a single installation
  • Extensions
    • Advanced Custom Fields
    • Relevanssi
    • REST API
    • SearchWP
    • Terms
    • Users
  • Examples
    • Default
    • Advanced Custom Fields
    • CSS Grid
    • Event Listing
    • Filtering
    • Images Loaded
    • Masonry
    • Multiple Instances
    • Preloaded Posts
    • Progress Bar
    • Search Results
    • WooCommerce
    • View All 30+ Ajax Load More usage examples
  • Docs
    • Add-ons
    • Archives
    • Callback Functions
    • Code Samples
    • FAQs
    • Filter Hooks
    • Implementation Guide
    • Implementation Methods
    • Loading Styles
    • Masonry
    • Parameters
    • Public JS Functions
    • Repeater Templates
    • Results Text
    • Screenshots
    • Shortcode Builder
    • Stylesheets (CSS)
    • Variables
  • Support
  • Download
  • Home
  • Plugins
  • Blog
  • Account
  • Cart
  • Affiliates
  • About
  • Contact

Connekt Media Github Twitter Facebook

A Whitby, Canada based product development company.

©2005 - 2025 Connekt Media | Terms and Conditions

WordPress Plugins

Our plugins are active on 250k+ websites around the globe.

Ajax Load More 50k+ active installations.

Instant Images 200k+ active installations.