Exclude Categories
-
I want to have a “site history” page that doesn’t show on my main page. To do this I know I need to exclude category 10. Now…can someone help me with the coding of the php?
<!–index.php–>
<!–the loop–>
<?php if (have_posts()) : ?>
<!–the loop–>
<?php while (have_posts()) : the_post(); ?><!–post title as a link–>
<h1 id=”post-<?php the_ID(); ?>”>” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”><?php the_title(); ?></h1>
<p><b>By <?php the_author(); ?></b> | <span class=”cal”><?php the_time(‘F j, Y’); ?></span> </p><div class=”postspace2″></div>
<!–post text with the read more link–>
<?php the_content(‘Read the rest of this entry »’); ?>
<!–show categories, edit link ,comments–><p class=”topics”><b>Topics:</b> <?php the_category(‘, ‘) ?> | <?php edit_post_link(‘Edit’, ”, ‘ | ‘); ?> <?php comments_popup_link(‘No Comments »’, ‘1 Comment »’, ‘% Comments »’); ?></p>
<div class=”postspace”></div>
<!–end of one post–>
<?php endwhile; ?><!–navigation–>
<?php next_posts_link(‘« Previous Entries’) ?>
<?php previous_posts_link(‘Next Entries »’) ?><!–do not delete–>
<?php else : ?>Not Found
Sorry, but you are looking for something that isn’t here.
<?php include (TEMPLATEPATH . “/searchform.php”); ?><!–do not delete–>
<?php endif; ?></div><!–end content–>
<!–index.php end–>
- The topic ‘Exclude Categories’ is closed to new replies.