Home › Forums › General Issues › Accessing Image Caption and Description › Reply To: Accessing Image Caption and Description
Hi @jmtaha,
Set the ‘return value’ option for your image field to ‘Image Array’. Then access the caption and description for the selected image in your image field as shown below:
$image = get_field('image_field_name);
echo $image['caption']; // image caption
echo $image['description']; // image description
Have a look at the docs >> Image field for more info.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.