[wp-hackers] the_content() and more link
robin.adr at gmail.com
Fri Jun 1 19:19:28 GMT 2007
Yeah, the_content() echoes and doesn't return.
You would want apply_filters( 'the_content', get_the_content() ).
On 6/1/07, James Davis <james at freecharity.org.uk> wrote:
> Computer Guru wrote:
> > <?php
> > $text = preg_replace('/(.+)<p><a href="([^"]+)">Continue
> > reading<\/a><\/p>/i', '\\1<a href="\\2">Continue reading</a>',
> > the_content('Continue reading "'. the_title("","",false).'"'));
> > ?>
> Perhaps I'm being silly but that doesn't appear to work because
> the_content prints output and doesn't return it where it could be used
> as an input to $text.
> http://www.freecharity.org.uk/ - Free IT services for charities
> http://www.freecharity.org.uk/wiki/ - The VCSWiki
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
More information about the wp-hackers