Using The More Tag On WordPress Pages

Posted on Tuesday, June 16th, 2009 at 12:32 pm in

I want to use the <!-- more --> tag on pages as well as posts.

To use the <!-- more --> tag in WordPress Pages you have to specifically set $more as a global variable within your theme’s page template.

  1. Edit page.php within your theme.
  2. Immediately after the opening <?php, add global $more;.
  3. Move down to where you call the_content(). Just before this add $more = 0;
  4. You should now have something like <?php $more = 0;the_content(); ?>
  5. Save your amended template

The More tag should now function within your Pages as well as your Posts.

You might also be interested in

WordPress CMS and Blog Themes from £19.95

Top