Support » Fixing WordPress » Displaying exerpts of posts

  • I just upgraded to 2.0 and ran into this probem. In my index file I had this code below for displaying exerpts of posts in certain catagories on the front page and full content in other categories.

    It is not working since the upgrade, it only shows the full content of posts now. Any one have any Ideas why this is not working anymore, and if there is a easy fix? Any help would be greatly appreciated.

    This is the code:

    <?php if(in_category(1) || in_category(5)) : ?>
    <?php the_excerpt(); ?>
    <?php else : ?>
    <?php the_content(); ?>
    <?php endif; ?>

  • The topic ‘Displaying exerpts of posts’ is closed to new replies.