Echo quotes inside function?
-
Can’t seem to work this one out – hoping someone can quell my frustration:
I’m using Advanced Custom Fields (which I love!) and need to echo “get_the_field(‘field_name’)”. Should all be easy, so I thought. But I can’t use the (‘field_name’) within the statement as single quotes are used for other purposes. I’ve tried double quotes, combinations, etc. but can’t get it working. Any help appreciated ?? My echo statement is
echo '<h5><a href="'.get_permalink().'">'.get_the_field() . '</a></h5>';
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Echo quotes inside function?’ is closed to new replies.