Both the_permalink()
and the_sub_field()
are functions that do more than output a string or URL.
Try usingget_permalink()
and get_sub_field
instead:
$link1 = get_permalink();
$link2 = get_sub_field('link_url');
Both the_permalink()
and the_sub_field()
are functions that do more than output a string or URL.
Try usingget_permalink()
and get_sub_field
instead:
$link1 = get_permalink();
$link2 = get_sub_field('link_url');