LeoLopesWeb
5/27/2019 - 12:40 AM

advanced custom fields

$value = get_field( "text_field" );

--------------

$term = get_queried_object();
$field = 'Imagem-banner';
$size = 'full';
$image = get_field('Imagem-banner', $term);
    
if( $image ): 
   echo '<div class="banner-product-cat"><img src="'.wp_get_attachment_image_src( get_field($field, $term), $size)[0].'"></div>';
endif;