[WordPress] 外掛分享: Toggle wpautop

WordPress 外掛 Toggle wpautop 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「Toggle wpautop」是 2013-02-24 上架。
  • 目前有 10000 個安裝啟用數。
  • 上一次更新是 2021-04-07,距離現在已有 1488 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 3.0 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 5.6 以上。
  • 有 32 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

aware | desrosj | linchpin_agency |

外掛標籤

editor | excerpt | wpautop | formatting | post content |

內容簡介

注意:此外掛不支援區塊編輯器,但當您在自訂文章類型中使用並搭配經典編輯器外掛時,應可繼續正常工作。

在 WordPress 顯示文章內容之前,該內容會經過多個過濾器以確保它安全地顯示在編輯器中輸入的方式一樣。

其中之一的過濾器是wpautop,它會將雙換行符替換為

標籤,並將單換行符替換為
標籤。然而,當您在文章編輯器中輸入大量 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.

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Toggle wpautop」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


1.0 | 1.1 | 1.2 | 1.1.1 | 1.1.2 | 1.2.1 | 1.2.2 | 1.2.4 | 1.2.5 | 1.3.0 | trunk |

延伸相關外掛(你可能也想知道)

  • Preserved HTML Editor Markup Plus 》這個外掛保留了使用者在 TinyMCE 編輯器中產生的 HTML 標記。不像其他外掛,這個外掛允許開發人員在 HTML 標籤中工作,同時讓終端使用者在所見即所得的視覺化...。
  • Don't Muck My Markup 》如果你曾經在 WordPress 博客文章或頁面中寫了大量 HTML,你就會發現你的精美標記被包在了

    標籤中,這樣做會讓人很恼火。如果加入了 jQuery,問題...。

  • Disable WPautop 》這個外掛可以在文章內容和摘要中關閉 wpautop 功能。
  • wpautop control 》這個外掛誕生於一個非常簡單的需求。在過去,當 wpautop 過濾器非常糟糕時,我感到很煩惱,就在我的博客中關閉了它。然而,多年後,我(但主要是我的共同作者...。
  • Disable Automatic P Tags 》透過安裝此外掛,您可以告別不需要的自動插入段落標籤,從而讓您的網頁標記更加美觀,且再也不必擔心出現不必要的換行符號。, Github:https://github.com/bi...。
  • Preserved HTML Editor Markup 》這個外掛會保留使用者在 TinyMCE 編輯器中產生的 HTML 標記。不同於其他外掛,這個外掛允許開發人員在 HTML 標籤中工作,以及最終使用者在 WYSIWYG 可視化標...。
  • Empty P Tag 》這個外掛可以從 the_content、the_excerpt 和 widget_text_content 中刪除額外的 p 和 br 標籤。。
  • Remove Blank P Tag 》這是一款非常簡單的外掛程式,可以在文章和頁面編輯器中刪除多餘的 p 和 br 標籤。此外掛可以從 the_content、the_excerpt 和 widget_text_content 中刪除額...。
  • Remove Wpautop 》此外掛可以移除在 the_content 和 the_excerpt 中多餘的 p 和 br 標籤。。
  • Un-Line-Break 》, , , 此外掛現在正在尋找收養者。, , Un-Line-Break 是一個輕量級的外掛,其主要目的是為了提升短代碼的可讀性。, 通常在文章編輯器中將短代碼放在不同的行...。
  • No Format Shortcode 》這個外掛提供了一個短碼,可選擇性地停用 WordPress 的自動格式設定。對於任何想編寫自訂 HTML 的使用者非常有用,但不想完全停用 wpautop。, 使用方法, 將任...。
  • Wpautop Mask 》這個外掛能夠在指定的短代碼標籤中禁用 WordPress (wpautop) 的自動格式化功能。, 這個外掛可以幫助你:, , 使用 HTML 撰寫文章, 在文章中插入程式碼片段 (HT...。
  • Remove empty p tag 》此外掛可從 the_content 中移除額外的 p 與 br 標籤。。
  • Make Autop 》安裝 Dean's FCKEditor for WordPress 後,您需要對所有文章和頁面應用 wpautop()。 , 安裝 Dean's FCKEditor for WordPress 後,您需要對所有文章和頁面進行...。

文章
Filter
Apply Filters
Mastodon