Home › Forums › Front-end Issues › escaping single quotes in php output › Reply To: escaping single quotes in php output
Not really sure about the issue in general, but this is incorrect right off the bat:
echo the_field
When you use the_field, it outputs to screen so no need to echo. Maybe that’s what the problem is.
Try replacing every instance of echo the_field
and the_field
to simply: get_field()
.
Hope this helps.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.