24 Mar 23

- Tagged in "How To" / Page 2 -

How to Use the Repeater Field

The Repeater field is essentially a way to organize and display data, specifically “repeating” content like slides, team member bios, and events. This is true, but it doesn’t really capture all the capabilities of this amazing field. In this article, we’ll show you how to unlock the real power of the Repeater field, register and […]

Continue Reading

20 Sep 22

How to help translate ACF into other languages

ACF 6.0 introduces a new way of collecting translations from our contributors. For all the strings contained in the free version of ACF, these are now collected from translate.wordpress.org. Many of you have submitted translations for numer... Continue Reading

22 Apr 15

Register fields via PHP

This article will discuss how to register fields and field groups via the functions.php file. There are many benefits to using PHP to register fields, the main of which is customization and distribution. The ability to define fields within ... Continue Reading

13 Mar 14

Debug, diagnose and solve

When customizing your theme with ACF functionality, you may experience some issues. These issues may resemble a blank page, a broken page, a value not being loaded or a visible error report. Although frustrating at first, these issues are i... Continue Reading

10 Sep 13

Hiding empty fields

Overview It is a common task to hide empty field values from your template. This can be achieved by using conditional statements to check the value before rending it. The basics to conditional a statement is to use an if statement. You can ... Continue Reading

20 Aug 13

Order posts by custom fields

This article will demonstrate how to retrieve and sort an array of post objects from the database using native WP functions. There are many ways to query posts in WP, however, this article will make use of the common get_posts function, WP_... Continue Reading

23 Apr 13

Get values from another post

All the template functions (get_field, the_field, etc) can be used to load values from another post, however, a second parameter is required to target the post. Each post has a unique ID which can be found in the URL when editing, or found ... Continue Reading

19 Feb 13

Sort a Repeater Field

This article will cover how to sort a repeater field based on it’s sub field values using a function called array_multisort(). Getting started The following examples assume a repeater field exists containing 2 sub field; ID (number fi... Continue Reading

19 Feb 13

Register multiple options pages

Multiple options pages can be registered by making use of the acf_add_options_page() and acf_add_options_sub_page() functions. Both functions can be used within the theme functions.php file. Once registered, each options page will appear wi... Continue Reading