Using the More tag on category overview page

wordpress the more tag

The More tag is a link at the bottom of an article’s excerpt. It’s very useful when you want to short teasers (excerpts) of articles on your blog combined with a link to the full article.

Normally, the More tag only works on the homepage. The code is already in place, and you simply add in the post where you want the cut made.
There are various tricks out there that will allow you to do the same on a Page, and even on a category overview page. Here are a few examples:

Explaining the More tag:
http://codex.wordpress.org/Customizing_the_Read_More and
http://en.support.wordpress.com/splitting-content/more-tag/

Solutions:
http://www.rlmseo.com/blog/read-more-link-on-wordpress-pages/
http://wordpress.org/support/topic/lt-more-gt-tag-not-working-in-category-display?replies=8
http://wordpress.stackexchange.com/questions/19799/more-tag-doesnt-appear-when-browsing-category-achives-or-search
http://wordpress.org/support/topic/read-more-link-leads-nowhere-on-page?replies=3#post-1601588
http://weblogtoolscollection.com/archives/2007/07/09/the-more-tag-on-a-wordpress-page/

My challenge was getting it to show on a category index page, where a list of post excerpts where shown.

For some reason (possibly because in my case I had to make it work on an older theme that may not have been built for it), none of these solutions worked. So I decided to create my own solution. It’s very simple, but I’ll post it here because I’m clearly not the only one who had this problem.

I started with this code in category.php:

 
<div class="entry">
    <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to 
       <?php the_title(); ?>"> <?php the_title(); ?></a>
    <?php the_excerpt(); ?>
    <p><small><?php  the_author(); ?>, <?php the_time('j F Y') ?></small></p>
</div>

 

And simply changed it to this:

 
<div class="entry">
    <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to 
       <?php the_title(); ?>"> <?php the_title(); ?></a>
    <?php the_excerpt(); ?><em><a href="<?php the_permalink() ?>" rel="bookmark" 
       title="Link naar volledig artikel"><br/>Lees hier verder...</a></em>
    <p><small><?php  the_author(); ?>, <?php the_time('j F Y') ?></small></p>
</div>

 

If this works for you, please leave a comment, good luck!


Comments

Using the More tag on category overview page — 6 Comments

  1. Quality articles or reviews is the main to interest the users to
    go to see the website, that’s what this web site is providing.

  2. As a Newbie, I am constantly exploring online for articles that can help me. Thank you

  3. Numerous thanks!! It was actually helpfull, i’m going to give it a try with my personal 1st wordpress blog.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>