Answers for "acf get text field"

PHP
1

get field of acf texonomy

<?php 

// load thumbnail for this taxonomy term
$thumbnail = get_field('thumbnail', $term->taxonomy . '_' . $term->term_id);

?>
Posted by: Guest on February-03-2021
2

acf get field

$value = get_field( "text_field" );

if( $value ) {
    echo $value;
} else {
    echo 'empty';
}
Posted by: Guest on June-29-2020

Browse Popular Code Answers by Language