Forcing 'More…' in Wordpress

Took me an hour to find this one.

Supposedly, when you’re designing a custom Wordpress template, the_content() will always cut off the_post() just before the ‘Read more…’ tag. Alas, this doesn’t always work.

This mechanism doesn work in the template called page.php since Wordpress assumes you’re displaying one page.

If you want to force the ‘Read more…’ link inside a Wordpress loop, you can though!

Add these two lines of php code (they should be inside php tags):

global $more;
$more = 0;

  1. No comments yet.

  1. No trackbacks yet.