You need to be using get_sub_field()
, not the_sub_field()
to set $company
. the_sub_field()
has no return, it just echo
s the value, whereas get_sub_field()
returns the value (but does not echo it).
You need to be using get_sub_field()
, not the_sub_field()
to set $company
. the_sub_field()
has no return, it just echo
s the value, whereas get_sub_field()
returns the value (but does not echo it).