Reputation: 10046
So I have a wordpress page where I need to paste a block of html code, but when I output using the_content()
you know that wp wraps things in <p>
and so on, so I want for THAT PAGE to echo out the exact code that I paste in the editor without that auto formmating, is there a function or something, I've searched and found wpautop
but doesn't work.
Upvotes: 0
Views: 804
Reputation: 1
If you mean you want code that will execute, and not be seen, then you might try stampede design's solution.
There is also a raw HTML plugin that might help.
Upvotes: 0
Reputation: 34185
You can switch from the WYSIWYG-View to the HTML-View by clicking the tab at top right corner of the editor window.
There you can inset your raw code surrounded by <pre>
</pre>
tags.
Upvotes: 1