“Categories 2” CT Archive
Term: Sample Category 2

Output ACF Image using a BB module

Banc ajouré Alt text

Output ACF Image Caption

Goal

Output the caption of an ACF Image set on a term.

Context

This page is the Archive of a Custom Taxonomy named "Categories 2" (slug: category_2), which is assigned to the WP regular Posts.
The CT settings (CPT UI)

An ACF Image field (returning an array) is assigned to this CT to add a featured image to the terms.
The ACF Image field settings

1 term in this CT, named "Sample Category 2", with an ACF Image set (the image has a Caption alright).
Edit the "Sample Category 2" term

Method

Here are the Themer shortcodes used to output the ACF Image URL,  Title, Caption… all are returned.


ACF Image URL:
[ wpbb archive:acf type='image' name='cat_2_image' image_size='full' display='url' ]
Output:

https://wpdemo4.avanti.fr/wp-content/uploads/2017/06/Banc-DSCF7987.jpg


ACF Image Title:
[ wpbb archive:acf type='image' name='cat_2_image' display='title' ]
Output:

ACF Image Caption:
[ wpbb archive:acf type='image' name='cat_2_image' display='caption' ]
Output:

ACF Image Alt:
[ wpbb archive:acf type='image' name='cat_2_image' display='alt' ]
Output:

ACF Image description:
[ wpbb archive:acf type='image' name='cat_2_image' display='description' ]
Output: