How to display the Read More tag in excerpts on a category page in WordPress

article header image

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:


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 the category.php template:

<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>

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 to full article"><br/>Read more...</a></em>
    <p><small><?php  the_author(); ?>, <?php the_time('j F Y') ?></small></p>

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

foto Boris Hoekmeijer
My name is Boris Hoekmeijer, I'm a webdesigner and graphic designer.
I sometimes run into a problem for which I have to find my own solution because Google just won't tell me. That's when I climb behind my mechanical keyboard, and fire away until a tutorial materializes. One of the great things about the web: we can all help each other!
If this article has helped you, or if you have anything to add or ask, please leave a comment or share the post.

© 2011 ★ Published: July 5, 2011

  • Wes Irimata says:

    I simply wanted to write down a quick word to say thanks to you for those wonderful tips and hints you are showing on this site.

  • Terence Mohammed says:

    (Thanks a lot very much for the high quality and results-oriented help. I won’t think twice to endorse your blog post to anybody who wants and needs support about this area.

  • Edris Matuszewski says:

    I have recently started a web site, the information you provide on this site has helped me tremendously. Thank you for all of your time & work.

  • Isaiah Hamnon says:

    Needed to compose you a very little word to thank you yet again regarding the nice suggestions you’ve contributed here.

  • Martin Heights says:

    Good post. I will surely follow the steps provided.

  • Dante Koziel says:

    I appreciate, cause I found just what I was looking for. You have ended my 4 day long hunt! God Bless you man. Have a nice day. Bye

  • says:

    Hey there, You’ve done an excellent job. I’ll definitely digg it and personally
    recommend to my friends. I am confident they will be benefited from this site.

  • Inspyder Site Map says:

    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.

  • Latonia Ikemire says:

    Incredible! Wonderful step by step guide. I’m about to employ that!

  • Darren Gelino says:

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

  • Erin Ryba says:

    Keep working ,terrific job!

  • Tommie Aker says:

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

  • Noma Masi says:

    I should say, some of this was a bit over my head, but all in all, i enjoyed reading your post.

Leave a Reply

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