[wp-hackers] Block auto formatting of post content?

Viper007Bond viper at viper007bond.com
Wed Aug 20 09:58:41 GMT 2008


$post->the_content is exactly as it came out of the database.

the_content() is essentially just   echo apply_filters( 'the_content',
$post->the_content );

--
Viper007Bond | http://www.viper007bond.com/ | http://www.finalgear.com/


On Wed, Aug 20, 2008 at 2:49 AM, Abel Cheung <abelcheung at gmail.com> wrote:

> On Tue, Aug 19, 2008 at 11:12 AM, Viper007Bond <viper at viper007bond.com>
> wrote:
> > Instead of the_content(), just use echo $post->the_content in your theme.
>
> With $post->the_content all other plugins doing other content
> conversion would not work as well, not just wpautop, is it?
>
> Abel
>
>
> >
> > On Mon, Aug 18, 2008 at 8:02 PM, Stephen Rider <
> wp-hackers at striderweb.com>wrote:
> >
> >> Two questions:
> >>
> >> 1) Is there a way to prevent _any_ auto formatting for a particular
> post?
> >>  I want to allow content to be shown without any added <p>, <br>, etc...
> >>  Display it _exactly_ as it was entered.
> >>
> >> 2) Is there a way for a plugin to allow use of a page template that is
> >> located in the plugin folder, or MUST it be moved to the theme folder?
> >>
> >> Thanks,
> >> Stephen
> >>
> >>
> >> --
> >> Stephen Rider
> >> <http://striderweb.com/>
> >>
> >>
> >>
> >> _______________________________________________
> >> wp-hackers mailing list
> >> wp-hackers at lists.automattic.com
> >> http://lists.automattic.com/mailman/listinfo/wp-hackers
> >>
> >
> >
> >
> > --
> > Viper007Bond | http://www.viper007bond.com/ | http://www.finalgear.com/
> > _______________________________________________
> > wp-hackers mailing list
> > wp-hackers at lists.automattic.com
> > http://lists.automattic.com/mailman/listinfo/wp-hackers
> >
>
>
>
> --
> Abel Cheung   (GPG Key: 0xC67186FF)
> Key fingerprint: 671C C7AE EFB5 110C D6D1  41EE 4152 E1F1 C671 86FF
> --------------------------------------------------------------------
> * My blog: http://me.abelcheung.org/
> * Opensource Application Knowledge Assoc. - http://oaka.org/
> _______________________________________________
> 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