• Hello all. I want to prevent WordPress from wrapping the text of a comment in paragraph tags. I tried adding a filter, but some other code further down the line is doing it.

    Any ideas how I might make this happen?

    Thanks!

Viewing 1 replies (of 1 total)
  • I’ll second this motion! Everytime I add a comment (ie a html <!-- comment --> ) inside a post, wordpress automatically wraps it in <p> tags throwing line spacings off all over the place.

    I’m using 2.5 and have the WYSIWYG function turned off. As far as I know it’s not supposed to screw with my code but it does.

    As a side note, when I go back in to edit the post, the paragraph tags around the HTML comments aren’t visible, I only found the problem when I actually pulled up the source for the page.

Viewing 1 replies (of 1 total)
  • The topic ‘Prevent p tags added to comments’ is closed to new replies.