sandywp / plugins / ajax-load-more-for-acf
Ajax Load More for Advanced Custom Fields
Ajax Load More extension that adds compatibility with various field types for Advanced Custom Fields.
Ready in seconds.
v1.4.0 2,000+ installs WP 4.0+

About this plugin
Ajax Load More for Advanced Custom Fields provides additional functionality for infinite scrolling Flexible Content, Gallery, Repeater and Relationship field data with Ajax Load More.
Easily access Repeater, Gallery, Flexible Content and Relationship custom field data from a page or post and return the results to Ajax Load More for infinite scrolling.
Supported Field Types
The following ACF Field Types are supported:
- Gallery – The gallery field provides a simple and intuitive interface for managing a collection of images.
- Flexible Content – The flexible content field acts as a blank canvas to which you can add an unlimited number of layouts with full control over the order.
- Relationship – The Relationship field creates a very attractive version of the post object field. With a Relationship field, you can select from pages + posts + custom post types.
- Repeater – The repeater field allows you to create a set of sub fields which can be repeated again and again whilst editing content.
Shortcode Parameters
The following Ajax Load More shortcode parameters are available when the Advanced Custom Fields extension is activated.
- acf – Enable compatibility with Advanced Custom Fields. (true/false)
- acf_post_id – The ID of the current page/post. Default = $post->ID
- acf_field_type – The type of ACF field. (gallery/flexible/relationship/repeater)
- acf_field_name – The name of the ACF field.
- acf_parent_field_name – Access sub field data up to the three levels deep.
- acf_row_index – Access sub field data in a Repeater or Flexible Content field by row index.
Example Shortcode
[ajax_load_more repeater="default" acf="true" acf_field_type="repeater" acf_field_name="{your_field_name}"]
Questions
- What version of Ajax Load More is required?
You must have v3.0+ of Ajax Load More installed.
- How do I use this extension?
Once installed, visit the Ajax Load More Shortcode Builder and build a custom shortcode specifying the ACF field type (acf_field_type) and field name (acf_field_name).
- What field types of Advanced Custom Fields are supported?
Gallery, Flexible Content, Repeater and Relationship fields are currently supported.
- How do I infinite scroll Repeater fields with Ajax Load More
Create an [ajax_load_more] shortcode and set
acf_field_type="repeater".- How do I infinite scroll Relationship fields with Ajax Load More
Create an [ajax_load_more] shortcode and set
acf_field_type="relationship".- How do I infinite scroll Gallery fields with Ajax Load More
Create an [ajax_load_more] shortcode and set
acf_field_type="gallery".- How do I infinite scroll Flexible Content fields with Ajax Load More
Create an [ajax_load_more] shortcode and set
acf_field_type="flexible".
sandywp / also on the shelf
Try another plugin
4.5 · 2M+ installs
ACF helps customize WordPress with powerful, professional and intuitive fields. Proudly powering over 2 million sites, WordPress…
ACF Content Analysis for Yoast SEO
4.1 · 100K+ installs
WordPress plugin that adds the content of all ACF fields to the Yoast SEO score analysis.
Advanced Custom Fields: Extended
4.8 · 100K+ installs
All-in-one enhancement suite that improves WordPress & Advanced Custom Fields.
Spin up a real WordPress site in seconds.
Test plugins, build a demo, hand a client a link — then squash it and start again. No local setup, no Docker.