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

ACF Taxonomy Term Fields on Single CPT Entries in WordPress

Sridhar Katakam

This members-only tutorial provides the steps to display the image (set up using Advanced Custom Fields) and the title for the taxonomy terms associated with the current singular CPT item being viewed in WordPress.

Field Group set to appear when editing a custom taxonomy's terms
Image being set for a taxonomy term
Taxonomy terms being set for a CPT entry
Taxonomy terms of the entry as a grid on single CPT page

We shall set the term image and title to link to the corresponding term archive page.

Step 1

Create a field group using ACF.

Add an Image-type of field with the return format set to Image ID.

In the Location meta box, set the group to appear on your desired taxonomy.

Step 2

Edit your taxonomy terms and set the image for each.

Step 3

In the Template that applies to your singular CPT pages, add this PHP 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