Plugin info

Total downloads: 127
Active installs: 0
Total reviews: 0
Average rating: 0
Support threads opened: 0
Support threads resolved: 0 (0%)
Available in: 1 language(s)
Contributors: 1
Last updated: 8/10/2025 (190 days ago)
Added to WordPress: 8/10/2025 (0 years old)
Minimum WordPress version: 5.0
Tested up to WordPress version: 6.8.3
Minimum PHP version: 7.4

Maintenance & Compatibility

Maintenance score

Stale • Last updated 190 days ago

38/100

Is Field Helper Functions For ACF Pro abandoned?

Likely maintained (last update 190 days ago).

Compatibility

Requires WordPress: 5.0
Tested up to: 6.8.3
Requires PHP: 7.4

Similar & Alternatives

Explore plugins with similar tags, and compare key metrics like downloads, ratings, updates, support, and WP/PHP compatibility.

PW WooCommerce Bulk Edit
Rating 4.9/5 (233 reviews)Active installs 20,000
Autoclear Autoptimize Cache
Rating 5.0/5 (9 reviews)Active installs 10,000
Export Media URLs
Rating 5.0/5 (26 reviews)Active installs 6,000
PW WooCommerce Exclude Free Shipping
Rating 4.7/5 (11 reviews)Active installs 1,000
Export Plus
Rating 4.9/5 (8 reviews)Active installs 300

Description

This plugin provides a set of simple, powerful helper functions to reduce boilerplate code and streamline the process of retrieving and displaying ACF field values in your templates. It includes helpers for getting single values (with support for nested groups), and for easily looping over repeater fields. The plugin is built with security and best practices in mind, ensuring that all output can be properly escaped.

Features:

  • get_acf(): A versatile function to get any field value. It supports dot notation for nested group fields and automatically handles get_sub_field() context within repeaters.
  • repeater(): A clean way to loop through repeater fields with callbacks. Includes optional callbacks for before and after the main loop, and allows passing an arguments array to the row callback. (Requires ACF Pro)
  • get_repeater_field(): Fetch a specific sub-field value from a specific row, or an array of all values for a sub-field across all rows. (Requires ACF Pro)
  • Lightweight and secure.
  • Logs to the PHP error log for easy debugging.

Usage Examples:

get_acf()

This is your main function for retrieving any ACF field value.

  1. Basic Usage: Get the value of a text field named page_headline.

  2. Providing a Default Value: If the page_subtitle field might be empty, provide a fallback.

  3. Escaping HTML: When outputting a value inside an HTML attribute, always escape it.

    ";
    

Other escape options: html, url, js, text.

  1. Getting a Value from an Options Page: To get a field value from an ACF Options Page, pass option as the $post_id.

  2. Getting a Value from a Nested Group Field: Use dot notation to access fields inside a group.

  3. Automatic Sub Field Usage: Inside a standard ACF have_rows loop, get_acf() automatically uses get_sub_field() so you don’t have to change your function calls.

    ' . get_acf('member_name', '', 'html') . '';
        endwhile;
    endif;  
    

repeater() (ACF Pro Only)

This function simplifies looping over repeater fields.

  1. Basic Repeater Loop: To display a list of testimonials from a repeater named testimonials with a sub-field testimonial_text:

    ' . get_acf('testimonial_text', '', 'html') . '';
    });
    
  2. Using Before and After Callbacks: To wrap your repeater output in

      and
    • tags.

      ' . get_acf('service_name') . '
    • '; }, [], // No args needed for this example function() { // Before callback echo '
        '; }, function() { // After callback echo '
      '; } );
    • Passing Arguments to the Callback: To make your repeater template more reusable, pass in arguments.

       'faq-item',
          'heading_level' => 'h3'
      ];
      
      repeater(
          'faqs',
          function($index, $args) {
              printf('
      ', esc_attr($args['item_class'])); printf( '<%s>%s', esc_attr($args['heading_level']), esc_html(get_acf('question')), esc_attr($args['heading_level']) ); echo '
      ' . get_acf('answer', '', 'html') . '
      '; }, $args );

get_repeater_field() (ACF Pro Only)

Use this to get data from a repeater field without looping through it manually.

  1. Get All Values from a Sub-Field:

    Total attendees: ' . count($all_attendees) . '

    ';
  2. Get a Value from a Specific Row:

Installation

  1. Upload the acf-field-helpers folder to the /wp-content/plugins/ directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Ensure you have Advanced Custom Fields (and ACF Pro for repeater functions) installed and activated.

Frequently Asked Questions

Does this work with the free version of ACF?

No. Whilst the get_acf() function will work with the free version of ACF, all other functions will not so we chose to limit the plugin to the Pro version only.

How do I use the new $args parameter in the repeater() function?

You can now pass an array of arguments to the repeater() function. This array will be available as the second parameter in your row callback function. See the “Usage Examples” section for a detailed example.

Review feed

No reviews available

Screenshots

No screenshots available

Changelog

1.1.0

  • Added detailed “Usage Examples” section to readme.txt.
  • Refactored plugin into a main file and an includes/functions.php file for better organisation.
  • Updated repeater() function to accept an $args array, which is then passed to the row callback.

1.0.0

  • Initial release.
  • Added get_acf(), repeater(), and get_repeater_field() helper functions.
  • Updated repeater() to include before and after loop callbacks.
  • Changed logging from qm() to error_log().