12% off of LTD using this coupon: TWELVEPERCENTOFF. Promo ends on 2 Dec midnight UTC.
Published on Mar 29, 2022

[Function] Get ACF Taxonomy Term Text Field Values

Sridhar Katakam

In this members-only tutorial, we share a custom function to retrieve the value of a specified Text-type of field created using ACF so it can be used with Oxygen's PHP Function Return value feature for use on taxonomy term archives.

This should also work for any type of field like "Wysiwyg Editor" or Url that returns text.

Step 1

Create a field group attached to your desired taxonomies and add fields as needed.

Step 2

Install and activate Code Snippets plugin.

Go to Snippets > Add New.

Title: [Function] Get ACF Taxonomy Term Text Field Values

Code:

This is a premium members-only content.

To view the rest of the content, please sign up for membership ($47/month or $599 one-time).

Already a member? Log in below or here.

tagschevron-leftchevron-rightchainangle-rightangle-upangle-downfolder-omagnifiercrossmenuchevron-downarrow-right