[wp-hackers] Paragraph tags in HTML editor

Ade Walker photofantaisie at gmail.com
Mon Nov 17 12:40:55 GMT 2008


Lynne,

That's perfect. Exactly what I was looking for!

Thanks.

Ade.

2008/11/17 Lynne Pope <lynne.pope at gmail.com>

> 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
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>


More information about the wp-hackers mailing list