Support » Fixing WordPress » “Read more” link on archive page

  • premasagar

    (@premasagar)


    Does anyone know the answer to this…?

    I am using the <!– more –> comment when making posts so that on the index page of the site, only the first portion of each post is shown. That works fine, but…

    I also want this behaviour on each of the category archive pages. The whole posts are shown, regardless of the use of the <!– more –> comment in the post text.

    I am using the Kubrick default theme (WP 1.5). I have ensured that the relevant lines in both index.php and archive.php read:

    <div class="entry">
    <?php the_content('Read more...'); ?>
    </div>

    Any ideas?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Kafkaesqui

    (@kafkaesqui)

    I see a ‘more’ link on posts in a number of categories. I assume you figured out the problem.

    Thread Starter premasagar

    (@premasagar)

    Do you really? I don’t. I only see it on the index page.

    For example, the solitary post in the “Linguistics” category should have a <more…> link after two paragraphs..
    http://www.dharmasphere.org/category/linguistics

    I really appreciate your lightning fast reply BTW…

    jinsan

    (@jinsan)

    I see read more in:

    Social Software
    Artificial Intelligence

    Remember to place the more tag on it’s own line clear of the other text.

    Thread Starter premasagar

    (@premasagar)

    Ah… indeed.

    I discovered that the very same post, which was posted to two different categories, showed the more link in one of the categories, but not in the other. And that is because in the category where the post is displayed in full, i.e. without the more link, it is the only post present in that category. In the other category, where there are a couple of different posts, the more link is shown.

    Thank you for taking a look and helping me find this out.
    :o) Prem.

    Hi, I need help on getting a ‘Read More’ link working on archives. Whenever I check posting in my archives, I only get a [Read More] withou a link. Currently, I could only specify my readers to click on the title to get a full post.

    Can anyone please help me by giving a 101 instruction? Please? Thanks.

    Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    In your Archives Template (archives.php), replace:

    <?php the_excerpt(); ?>

    with:

    <?php the_content('Read the rest of this entry &raquo;'); ?>

    Thanks, macmanx. Works like a beauty!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘“Read more” link on archive page’ is closed to new replies.