Linux 软件免费装
Banner图

Toggle wpautop

开发者 linchpin_agency
aware
desrosj
更新时间 2021年4月7日 21:35
PHP版本: 3.0 及以上
WordPress版本: 5.7
版权: GPLv2 or later
版权网址: 版权信息

标签

editor excerpt custom post types formatting post content filters wpautop add_filter

下载

1.0 1.1 1.1.1 1.1.2 1.2 1.2.1 1.2.2 1.2.4 1.2.5 1.3.0

详情介绍:

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 <p> tags, and single line breaks with <br /> 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.

安装:

  1. Upload the plugin folder to the /wp-content/plugins/ directory
  2. 通过WordPress的“插件”菜单激活插件
  3. Proceed to the Settings->Writing and select which post types should have the option to disable the wpautop filter.

屏幕截图:

  • The disable wpautop checkbox on post edit screens.
  • Settings->Writing page with plugin settings.

常见问题:

Can I disable wpautop completely with this plugin?

Right now, no. wpautop is a great filter, and in most cases you should not need it disabled globally. However, if there is enough demand for this feature we can add it. = Can I set wpautop to default to "off" for new posts. Yes.

更新日志:

1.3.0 1.2.5 1.2.4 1.2.3 1.2.2 1.2.1 1.2.0 1.1.2 1.1.1 1.1 1.0