當我使用WP的文本編輯器,我有兩個選擇:如何使用WordPress的文本編輯器的行爲類似於HTML
- 或我停止增加自動
<p>
和<br>
標籤, - 或opposit,它自動給這些標籤。
我像網上的其他數百萬人一樣瘋狂......我想在正常的html頁面上工作:當我按「enter」時,它會給出一條空行,因爲我們看到它在屏幕上,當我們添加一個代碼時,它會給出一個類似代碼的代碼。
現在,例如,如果我這樣做於文:
"this is a sample sentences <h2>here i want two words with h2 style</h2> here my sentence continues...",
在現實中,它給出了這樣的結果:
<p>this is a sample sentences <br />
<h2>here i want two words with h2 style</h2><br />
here my sentence continues...</p>
我的理解,我試圖用增加remove_filter ('the_content', 'wpautop');
刪除automatisation到函數文件,但在這種情況下,在每個換行符處,我必須添加一個瘋狂的代碼。
有沒有解決方案???
你有沒有簽出[本問答](http://wordpress.stackexchange.com/questions/214588/tinymce-editor-is-breaking-my-beautiful-html/214591)? – MinhTri