
內容簡介
注意:此外掛不支援區塊編輯器,但當您在自訂文章類型中使用並搭配經典編輯器外掛時,應可繼續正常工作。
在 WordPress 顯示文章內容之前,該內容會經過多個過濾器以確保它安全地顯示在編輯器中輸入的方式一樣。
其中之一的過濾器是wpautop,它會將雙換行符替換為<p>標籤,並將單換行符替換為<br />標籤。然而,當您在文章編輯器中輸入大量 HTML 標記時,此過濾器有時會引起問題。
此外掛會在發佈的文章編輯畫面的發佈元塊中顯示複選框,以禁用該文章的wpautop過濾器。
此外掛還將「wpautop」或「no-wpautop」類添加到文章類別過濾器中以幫助 CSS 樣式設計。
外掛標籤
開發者團隊
原文外掛簡介
Note: This plugin does not support the block editor but should continue to work without issue when using it with custom post types and the Classic Editor Plugin.
Before WordPress displays a post’s content, the content gets passed through multiple filters to ensure that it safely appears how you enter it within the editor.
One of these filters is wpautop, which replaces double line breaks with
tags, and single line breaks with
tags. However, this filter sometimes causes issues when you are inputting a lot of HTML markup in the post editor.
This plugin displays a checkbox in the publish meta box of the post edit screen that disables the wpautop filter for that post.
Also adds a ‘wpautop’, or ‘no-wpautop’ class to the post_class filter to help with CSS styling.
