WordPress.org

Ready to get started?Download WordPress

Forums

Show whole posts in category (6 posts)

  1. kongen
    Member
    Posted 4 years ago #

    Hi,

    How can I show whole posts when clicking on a category using WP 3.0 and TwentyTen theme, instead of them breaking up with "Continue reading"?

  2. Sigidi
    Member
    Posted 4 years ago #

    look for replace excerpt code with

    <?php the_content(''); ?>

  3. Sigidi
    Member
    Posted 4 years ago #

    look for

    <?php the_excerpt(); ?>

    and replace with the code above

  4. kongen
    Member
    Posted 4 years ago #

    Which file? I can't find it in category.php or index.php?

  5. Rev. Voodoo
    Volunteer Moderator
    Posted 4 years ago #

    well, since you are talking about categories, I started by looking at category.php, which led me to loop.php

    All the loops are handled in loop.php in twentyten

    So, you could either edit loop.php where you see the_excerpt

    But the better thing to do would be using a child theme, if you look at category.php in twentyten, it is commented to give a bit of instruction on includeing a deifferent loop, which you could do to override the default behaviour

  6. kongen
    Member
    Posted 4 years ago #

    Thanks, it works :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.