Ajax Load More for Advanced Custom Fields

Description

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 or Relationship custom field data from a page or post and return the results to Ajax Load More for infinite scrolling.

View Documentation

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.

Example Shortcode

[ajax_load_more repeater="default" acf="true" acf_field_type="repeater" acf_field_name="{your_custom_field_name}"]

Installation

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-for-acf.zip from your computer
  4. Click ‘Install Now’
  5. Activate the plugin in the Plugin dashboard

Using FTP

  1. Download ajax-load-more-acf.zip.
  2. Extract the ajax-load-more-for-acf directory to your computer.
  3. Upload the ajax-load-more-for-acf directory to the /wp-content/plugins/ directory.
  4. Ensure Ajax Load More is installed prior to activating the plugin.
  5. Activate the plugin in the WP plugin dashboard.

FAQ

Installation Instructions

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-for-acf.zip from your computer
  4. Click ‘Install Now’
  5. Activate the plugin in the Plugin dashboard

Using FTP

  1. Download ajax-load-more-acf.zip.
  2. Extract the ajax-load-more-for-acf directory to your computer.
  3. Upload the ajax-load-more-for-acf directory to the /wp-content/plugins/ directory.
  4. Ensure Ajax Load More is installed prior to activating the plugin.
  5. Activate the plugin in the WP plugin dashboard.
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".

Reviews

Awesome for sites made with ACF

Works great a little confusion at the start but got it working after reading several times and following the author examples, works very nice with ACF galleries

Another great tool by Connekt Media

Great, another superb addition to the Ajax Load More toolset.

While it was possible to hand code the functions that this tool provides before, this plugin makes it simpler and faster to get things done.

Less head scratching, more getting things done!

Really nice, thanks Darren 🙂

Read all 2 reviews

Contributors & Developers

“Ajax Load More for Advanced Custom Fields” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

1.1.1 – October 5, 2017

  • NEW – Adding new alm_get_acf_gallery_theme_repeater function for integration between Theme Repeaters (add-on) and the Gallery Field Type.

1.1 – May 22, 2017

  • NOTICE – Requires Ajax Load More 3.0.1+
  • NEW – Added support for Gallery field type.
  • NEW – Added support for Flexible Content field type.

1.0 – May 4, 2017

  • Initial Release.