Support » Themes and Templates » Finding out the category

  • On the front page, I want to show only the excerpts for the posts, except int the “personal” category. So far i have the following code :
    <?php
    if ($_GET['cat'] || $_GET['p']) { the_content(); } else {
    the_excerpt(); } ?>

    So that works out if its the front page fine. What I want to do is have it find out if the post its outputting is in Catid 1. How would I do that?

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Finding out the category’ is closed to new replies.