• Hi, thanks for helping me out.

    I have a custom field that I am calling in my theme’s template file to pull the first half of an anchor tag that is meant to wrap an element on my page. The problem I am running into is when I load the page, a closing anchor tag is produced immediately next to the anchor tag.

    This is maddening, because I have the closing already in place in my theme. Is this another one of wordpress’ filter, like wpautop? If so, how does it work, and how might I deactivate it?

    One other important piece of info: I’m trying to wrap the anchor tag around a div. I understand that this hasn’t always been possible. Is it possible that my browser is finishing these tags for me?

Viewing 1 replies (of 1 total)
  • Thread Starter Sleneau

    (@sleneau)

    Well… I can only guess that this is something like the WordPress autop function that automaticially filters everything that is called through the the_content(); filter, and tries to estimate what a user really means by their input, and adds what it deems to be the necessary markup. I’ve never had any luck deactivating this annoying feature, and might simply resort to using custom fields to display normal content.

Viewing 1 replies (of 1 total)
  • The topic ‘WordPress finishes my anchor tags before I want them to close’ is closed to new replies.