這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Empty P Tag

外掛說明

This plugin remove extra p and br tags from the_content, the_excerpt and widget_text_content.

安裝方式

To install “empty p tag” using the built-in plugin installer:

1. Go to Plugins > Add New.
2. Type in "empty p tag" in Search Plugins box or click a tag link below the screen.
3. find the "empty p tag Plugin" in the list.
4. Click Install Now to install the WordPress Plugin.

To install empty p tag manually:

  1. Download your WordPress Plugin to your desktop.
  2. If downloaded as a zip archive, extract the Plugin folder to your desktop.
  3. With your FTP program, upload the Plugin folder to the wp-content/plugins folder in your WordPress directory online.
  4. Go to Plugins screen and find the “empty p tag Plugin” in the list.
  5. Click Activate to activate it.

常見問題集

How do Plugin turn off automatic p, br for a post?

After plugin activation, WordPress will no longer attempt to add <p> and <br> tags to your posts (so you’ll be responsible for adding these yourself).

I upgraded the plugin and it lost my default settings!

No, it didn’t. Disable and re-enable the plugin and the setting should be updated to the new setting.

使用者評論

2020 年 6 月 19 日
I tried this as a last resort to try to improve the formatting of my commenting system, wpDiscuz (https://wordpress.org/plugins/wpdiscuz/), which by the way is great! Unfortunately in my case (because I need to select only one or two words sometimes) it kept adding <p> tags to the text, which added line breaks and unwanted spacing. This plugin solved that problem!
2017 年 10 月 11 日 1 則留言
I love this plugin. It really work fine.
閱讀全部 7 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Empty P Tag〉的開發相關工作。

參與者

將〈Empty P Tag〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

2.0.1

  • Thired released
  • Added feature to remove for ‘whitespace’ with p tag.

1.0.1

  • Second released
  • Added ‘preg_replace’ function to remove Empty tag.

1.0.0

  • First released
  • Basic Plugin