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.
(@loverly)
18 years, 8 months ago
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!