Posted on 6 August, 2009 By Kim Woodbridge 22 Comments

Using the WordPress More Tag to Control Content Displayed on Front Page

Please Sir, Can I have some more? (by TravelJunkieoz)

Most WordPress Themes are set up to display the full post on the front page rather than the excerpt. If you display a number of articles on the front page, such as the 10 that are in the default WordPress settings, this can make for a very long front page.

I like to use the More tag to display the first paragraph or so and then have a link that says Continue or Keep Reading. And what is nice about using the More tag is that you don’t have to edit any templates – it is right on the toolbar in both the html and visual editors.

The index page of a WordPress template, index.php, displays the article posts with

<?php the_content('continue'); ?>

or

<?php the_excerpt(); ?>

I find it is usually the first.

Whatever comes in the ‘continue’ part is what the link will say when you use the More tag. Some say Keep Reading or Read More of this Article. But it can say anything you want, such as “Read On, If You Dare Sucker!”.

In the html editor there is a simple button that says more.

htmlmore

In the visual editor is a little icon that looks like a ripped piece of paper that says “Insert More Tag” when you hover over it.

more

Wherever you place this tag in your post is where the break on the front page will be. This gives you control over how the article appears and keeps you from having full posts on the front page.

The more link contains a CSS class so you can do all sorts of nifty things when styling it, like using an image. But this will have to wait for another post.

Do you use the More tag? Why or why not?

photo credit: _TravelJunkieoz


Related Posts:
  • How to Style the Read More Link in WordPress
  • (Anti) Social-Lists 5/24/09
  • WordPress – How To Create a Static Front Page
  • How to add a RSS Feed to a Post or Page Using a WordPress Shortcode
  • How to Add a RSS Feed Without a Plugin Using the WordPress Fetch Feed Function
  • Posted In : WordPress Tips
    If you enjoyed this post, please subscribe to my RSS Feed

    Post to Twitter   Post to Delicious   Post to StumbleUpon

    22 Responses to “Using the WordPress More Tag to Control Content Displayed on Front Page”

    Trackbacks/Pingbacks
    1. How to Style the Read More Link in WordPress | (Anti) Social Development
    Leave a Comment
    You may use: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> .


    Recent Comments

      • bhagu: Thanks for sharing... short and simple, but very good information....
      • Kim Woodbridge: Hi Dennis - I even have 2 domain names ... ;-)...
      • Kim Woodbridge: Hi Bobbi - We were discussing that issue on my Facebook page yesterday and no one knows a way to do it - I don't think i...
      • Dennis Edell: Seriously, if not a whole 'nother blog, then at least a page with just links to facebook resources. ;) .-= Dennis Edell´...
      • Bobbi: Thanks for the info on facebook pages... I was wondering if there is any way to check what other pages have added my ...
      • Kim Woodbridge: Hi Vince - LOL - nope....
      • Kim Woodbridge: Hi James - Great! I found a post yesterday about the Thesis theme that did the same thing for me....
      • Vince: Great tool! Do you know of a way to call an image's alt-text in another plugin's function?...