ACF – get custom taxonomy term image field

I did it by this example: https://support.advancedcustomfields.com/forums/topic/loop-to-display-acf-image-of-taxonomy-term/ <?php $terms = get_terms( array( ‘taxonomy’ => ‘sluzba’, ‘hide_empty’ => false ) ); foreach ( $terms as $term ) : $term_image = get_field( ‘tax_image’, ‘sluzba_’ . $term->term_id ); ?> <div class=”col-lg-4 col-md-6″> <div class=”product product-zoom product–card”> <div class=”product__thumbnail”> <?php if ( $term_image ) : ?> <img src=”<?php echo … Read more

Custom ACF block only outputs commented JSON to the DOM

I was facing this same issue, in my case the issue causing me this problem was silly, as usual. For those facing a similar issue, check your acf_register_block_type function: acf_register_block_type( array( ‘name’ => ‘theme-block-jobbz’, ‘title’ => __( ‘Title’, ‘client’ ), ‘enqueue_style’ => ‘template-parts/blocks/block_jobBz/block.css’, ‘render_template’ => ‘template-parts/blocks/block_jobBz/block.php’, ‘category’ => ‘Category’, ‘icon’ => ‘html’, ‘mode’ => ‘preview’, … Read more