Published on April 9, 2020

[Function] Get Taxonomy Term Field

Sridhar Katakam

This members-only tutorial provides the steps to define a custom function that returns the value of a custom field set using Advanced Custom Fields for a taxonomy term so it can be used in PHP Function Return value for showing taxonomy term-specific values in Oxygen.

series_image's return format set to URL

Note: The following steps assumes that you have already created the field group, attached it to your desired taxonomy, populated the fields by editing the term pages in the WP admin, and created a Oxygen Template that applies to all or some of your terms.

Step 1

Install and activate Code Snippets plugin.

Go to Snippets > Add New.

Title: [Function] Get Taxonomy Field

Code:

This is a premium members-only content.

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

Already a member? Log in below or here.

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