Displaying exerpts of posts (1 post)

  1. Novakeo
    Posted 10 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.