Skip to content
UFO Performance Marketing

Where intelligence is put to the test.

HomeServicesCase StudiesBlogAboutContact Us
Menu
HomeServicesCase StudiesBlogAboutContact Us
WordPress · Oct 16, 2014

Using the "More" Tag on WordPress Pages

Using the "More" Tag on WordPress Pages
JC
John Crenshaw
Oct 16, 2014

Some of you may notice I've recently added a "blog" section to this site in addition to the existing "tutorials" section. Even though I use excerpts for my summaries in the tutorials section, I wanted to use the "more" tag in the blog section to accomplish the standard blog setup with the beginning of a post on the homepage and the rest on the single post page, with a "Read more" link allowing the reader to click through to the latter.

Two Blog Homepages

There's a small problem with having what essentially amounts to two blog homepages...one for the tutorials section and another for the blog section. The problem is that I have to tell WordPress to use one as the actual blog homepage, which, in my case, I've already set up to be the tutorials page. By default, WordPress won't let you use the "more" tag to clip posts on any pages other than the specified homepage. So, I did a little searching and found a really simple fix for this problem over at Weblog Tools Collection.

The Solution

The solution is incredibly simple, although, if you didn't do the exact same Google search I did you may have trouble finding it, so here it is.

All you have to do is add the following line just before the code to display your post content:

1
<?php global $more; $more = FALSE; ?>

So you end up with something like this on the page where you want your posts to be cut off (the "Blog" page in my case):

1
2
<?php global $more; $more = FALSE; ?>
<?php the_content('Read more &rarr;'); ?>

Why It Works

I haven't looked into the specific details on why this works, but it appears that WordPress uses the global variable "$more" as a flag to tell it whether or not the "more" tag should function on a given page. By default it's probably set for whatever page you specify as your blog's homepage, but not the rest. The code above sets the global variable "$more" equal to FALSE before displaying the post content so that WordPress respects the "more" tag on that page.

Ignoring the "More" Tag Once Again

Incidentally, you can set $more = TRUE immediately after displaying your content and WordPress will ignore the "more" tag in any posts following that one...like so:

1
2
3
<?php global $more; $more = FALSE; ?>
<?php the_content('Read more &rarr;'); ?>
<?php $more = TRUE; ?>
WordPress

Get the latest from UFO

Keep reading

More from the blog

All Posts →
ExpressionEngine vs. WordPress - Final Thoughts
WordPress

ExpressionEngine vs. WordPress - Final Thoughts

What I like about ExpressionEngine when compared to WordPress and my final thoughts on the commercial CMS from EllisLab.

John Crenshaw · Oct 13, 2018
Wordpress $post Object Quick Reference
WordPress

Wordpress $post Object Quick Reference

This quick reference / cheatsheet is for the WordPress $post object. This object contains a bunch of info specific to each WordPress post. Scroll down for the complete table of object properties.

John Crenshaw · May 15, 2015
Remove "Briefly Unavailable for Scheduled Maintenance" Message
WordPress

Remove "Briefly Unavailable for Scheduled Maintenance" Message

If you've been keeping on top of your WordPress updates using the automatic upgrade feature, you may have run into a problem immediately after upgrading.

John Crenshaw · Dec 10, 2014

Want results like these?

Let's talk about where you are, where you want to go, and the smartest way to get there.

Contact Us
UFO

Where intelligence is put to the test.

  • Home
  • Services
  • Case Studies
  • About
  • Partners
  • Testimonials
  • Projects
  • Blog
  • Careers
  • Contact Us

Offices

  • Cincinnati, OH
  • Columbus, OH
  • Portland, OR
  • (513) 549-7355
Contact Us
Google 5.0 five star rating Google Ads Premier Partner 2026
© Copyright 2026 UFO Marketing. All rights reserved. Privacy Policy | Terms of Use