[wp-hackers] the_content ignoring more
Computer Guru
computerguru at neosmart.net
Thu Oct 5 16:28:16 GMT 2006
That's also in the code:
In "function NST_CheckRSS()"
$content = apply_filters('the_content', $content);
That will do everything that needs to be done :)
Computer Guru
Founder,
NeoSmart Technologies
http://neosmart.net/blog/
> -----Original Message-----
> From: wp-hackers-bounces at lists.automattic.com [mailto:wp-hackers-
> bounces at lists.automattic.com] On Behalf Of Elliotte Harold
> Sent: Thursday, October 05, 2006 7:22 PM
> To: wp-hackers at lists.automattic.com
> Subject: Re: [wp-hackers] the_content ignoring more
>
> Computer Guru wrote:
> >> See the function get_the_content() to see where $more is
> implemented.
> >
> > I've implemented the same function without the presence of the more
> > expansion code...
> >
> > It's in my CompleteRSS plugin, you can get it here:
> > http://neosmart.net/dl.php?id=2
> >
> > The source
> >
> (http://neosmart.net/mint/pepper/orderedlist/downloads/download.php?fi
> > le=htt
> >
> p%3A//neosmart.net/downloads/software/WordPress/Plugins/CompleteRSS/Co
> > mplete
> > RSS_0.2.phps) is moderately commented, it's the section
> > "NST_get_the_content" and it's original WP "get_the_content" but
> > without the splitting code (notice how slim it gets!!)
> >
>
> Thanks. This seems to work. However, it returns the unformatted
> content, straight out of the database. Now what do I do if I want to
> format the content as HTML in the feed? For instance, turning blank
> lines into paragraph breaks and so forth.
>
> That is, I want to apply the same formatting WordPress does to the raw
> story text before sending it to the browser but in my feed.
>
>
> --
> Elliotte Rusty Harold elharo at metalab.unc.edu
> Java I/O 2nd Edition Just Published!
> http://www.cafeaulait.org/books/javaio2/
> http://www.amazon.com/exec/obidos/ISBN=0596527500/ref=nosim/cafeaulaitA
> /
> _______________________________________________
> 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