Home › Forums › General Issues › ACF text area link problem › Reply To: ACF text area link problem
okay,
I’m seeing where you’re problem is now. It is because you are trying to nest <a>
elements. This is not allowed in HTML
your code has this
<a href='<?php echo get_permalink($post->ID); ?>' >
... all of your other code .....
</a>
When you add a link into the text area you end up with
<a href='link to the post' >
<a href="some other link">some other text</a>
</a>
This is not allowed. The browser is closing the first link before the start on the second. This is causing your tags to be improperly nested.
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.