Home › Forums › General Issues › Get term ACF Image Field › Reply To: Get term ACF Image Field
Thanks for the feedback @jarvis . When I Use this updated code:
$terms = get_terms( 'molecules_of_the_month', $args );
if ( ! empty( $terms ) ) :
$termid = get_queried_object()->term_id;
var_dump($termid);
$summaryimage = get_field('summary_preview_image', 'tax_name_'.$termid);
// print_r($summaryimage);
$size = 'full'; // (thumbnail, medium, large, full or custom size)
$count = count( $terms );
$i = 0;
$term_list = '<p class="molecule-of-the-month">';
?>
does however not work … yet either. The var_dump
shows me string(0) “”
. So besides me not specifying the taxonomy (month here though acf group with field preview_image
is attached to term month and year) something else is still needed I think.
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!
🚀 ACF & ACF PRO 6.0.7 are now available.
— Advanced Custom Fields (@wp_acf) January 18, 2023
✨This release contains bug fixes and improvements while we continue to work on the next major release of ACF.https://t.co/wQgAOpwmUI
© 2023 Advanced Custom Fields.
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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.