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!
© 2023 Advanced Custom Fields.