Have Wordpress save posts as raw HTML directly into database instead of rendering on frontend

admin

Administrator
Staff member
In the
Code:
Visual
view in Wordpress when I press
Code:
<enter>
it appears as if a new paragraph is started (see image 1). But when I go to the 'Text' tab, no
Code:
<p>
tag can be found (see image 2).

<img src=" " alt="enter image description here">

<img src=" " alt="enter image description here">

I've installed the TinyMCE plugin because I thought it would provide me more control.
I also tried adding a codepiece to the
Code:
functions.php
file of my template (see here: <a href="http://www.adammershon.com/stop-wordpress-from-removing-br-and-p-tags/" rel="nofollow noreferrer">http://www.adammershon.com/stop-wordpress-from-removing-br-and-p-tags/</a>)

But I can't create paragraphs by entering text on the
Code:
Visual
tab, the only way is to insert p tags them manually on the
Code:
Text
view, which is unacceptable to my client.

Also when I press shift+enter on the
Code:
Visual
tab it goes to the next line, but on the
Code:
Text
there's no
Code:
&lt;br/&gt;
tag.

<strong>Important note</strong>
I've integrated my Wordpress with ASP.NET where I directly request the content from the Wordpress database. So the rendering of the HTML is NOT done by Wordpress.

How can I have Wordpress add the paragraph tags when only editing on the
Code:
Visual
tab?

(I did not place this post in webapps.stackexchange.com because fixing my issue most likely requires some programming.)