[wp-hackers] the_content() and more link

James Davis james at freecharity.org.uk
Fri Jun 1 14:39:16 GMT 2007


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.

James

-- 
http://www.freecharity.org.uk/ - Free IT services for charities
http://www.freecharity.org.uk/wiki/ - The VCSWiki


More information about the wp-hackers mailing list