[wp-hackers] Paragraph tags in HTML editor

Lynne Pope lynne.pope at gmail.com
Mon Nov 17 12:26:01 GMT 2008


2008/11/18 Ade Walker <photofantaisie at gmail.com>:
> Hi all,
>
> I'm sure this has been covered a thousand times before (in which case,
> apologies), but I would like to find a way of forcing P tags to be visible
> in the HTML editor, and therefore editable. I sometimes have problems with
> the way the Editor automatically adds P tags (due to me adding other html
> tags such as DIVs in the Editor).
>

Why not disable the auto p completely and just use your own paragraph
tags? Its much easier ;)

//disable auto p
remove_filter ('the_content',  'wpautop');

Include this in  functions.php and you never have to worry about them again.

Lynne


More information about the wp-hackers mailing list