Is it possible for wpautop to only wrap plain text, so that e.g. here:


<a href="">link</a>

only the "text" gets wrapped. Why would you want to wrap tags anyway? Maybe anyone has a custom function?

  • Have you taken a look at the source, tried to figure out what it really does (hint: phpDocBlock) and tried to fix what you need yourself (which is a prerequisite)?
    – kaiser
    Nov 7, 2013 at 14:53
  • That would be the last straw of course. I cannot believe that i am the only one with this desire though, so i wanted to ask since i couldn't find any solution (that others have created) by myself.
    – br4nnigan
    Nov 7, 2013 at 15:10
  • Please read the doc block again. And please test this with no plugins activated and one of the default Twenty* themes in use.
    – kaiser
    Nov 7, 2013 at 15:19


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.