Adds a global setting to turn the wpautop filter on and off. It also allows you to override this default for any post by adding a wpautop custom field …
This plugin was born out of a very simple need. Back in the day, when the wpautop filter was really sucky, I got annoyed and turned it off for my blog. However, years later, me (but mostly my co-author, Halfgaar) got equally annoyed by having to manually type in all the angle brackets. I wanted to turn on the filter again, but I didn’t want this to affect all my old posts. Hence this plugin. See this blog post for more history.
/wp-content/plugins/
directory/wp-content/plugins/
directoryAdd a custom field called wpautop
to any post. When set to false
, no
or off
, WordPress will no longer attempt to add <p>
and <br>
tags to your posts (so you’ll be responsible for adding these yourself).
You can set the field’s value to true
, yes
or on
if you do want WordPress to use its wpautop
filter to add <p>
and <br>
tags for you. (Of course, this only makes sense if you’ve globally disabled wpautop
in the included option screen.)
Set the field’s value to ‘-break’ to just disable the conversion of newlines to <br>
tags within paragraphs.
No, it didn’t. Disable and re-enable the plugin and the setting should be updated to the new setting.
on
/off
aliases.wpautop_on_by_default
) to new option (wpautop_by_default
).<br>
tags within paragraphs. This is useful, for example, when writing Markdown with a text editor like Vim.