內容簡介
WordPress 提供了 wpautop 過濾器,可以將所有的雙倍行距轉換為 ‘p’ 標籤,單倍行距則轉換為 ‘br’ 標籤,非常實用。但有時候這也可能會導致一些問題,例如它會破壞您文章內容的整個 HTML 結構,這是不想要的。
我們可以通過從 ‘the_content’ 和 ‘the_excerpt’ 中移除wpautop過濾器來禁用它。但這樣會刪除所有的文章、頁面和自訂文章類型的 wpautop。
但是,有時候你只想要在特定的文章中禁用它。那麼,在這種情況下,你可以怎麼做呢?不用擔心。這個外掛就可以幫助你完成這樣的工作。
這個外掛可以讓你啟用或禁用特定文章、頁面或自訂文章的 wpautop。你可以選擇哪些文章需要禁用 wpautop。它不會影響到你的其他文章。
外掛標籤
開發者團隊
原文外掛簡介
WordPress provide wpautop filter to replcae all double line break with ‘p’ tag and single line break with ‘br’ tag. Which is very useful to us. But sometimes this also causes some issues e.g. it can break the whole html structure of your post content, which is unwanted.
We can also disable the wpautop filter by removing it from ‘the_content’ and ‘the_excerpt’. But it will remove wpautop for all of your posts, pages, and custom post types.
But, sometimes you want to remove it only for specific posts. So, what can you do in this situation? Don’t worry. You can perform this type of works with this plugin.
This Plugin let you enable or disable wpautop for your specifc posts, pages or custom posts. You can choose which posts need to disable wpautop. It doesn’t impact on your other posts.
