Home › Forums › General Issues › Get HTML Tag inside Custom Text Area › Reply To: Get HTML Tag inside Custom Text Area
Hi @blasphemine
You can’t use the get_field in this way, but you can use some simple PHP to do so like this:
$text = get_field('content_left');
$text = explode('</h1>', $text);
$text = current($text) . '</h1>';
echo $text;
Not sure if that actually works, but the logic is there.
Thanks
E
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.