Quick PHP question
$str .= '<div class="thumb-wrap"><a href="<?php the_field('url'); ?>">';
I know I'm a newb, but this line breaks my code.
Is there a way to call a field "URL" (advanced custom fields) within a string of PHP?
If I hardcode the URL instead of that line of PHP, I can achieve what I want but I'm pulling it from a post because each url is pulled from a custom field.
|