Home › Forums › Back End › FOR loop with counter in variables › Re: FOR loop with counter in variables
May 20, 2013 at 12:58 pm
#135662
Member
You would do something like this:
$my_var = get_field(‘some_field’);
if( $my_var ) {
echo $my_var;
}
Or, if you want to output the field without checking if it exists or not, you’d go like this:
the_field(‘some_field’);
> Or in words, echo get_field() does the same as the_field()…. Right?
Basically, yea!