WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Refer to: http://blog.studentlife.uiowa.edu/svp/categories/

I just used a blank category template. What can I add to/change the code to make it so that it doesn't put in the category page like it's a post? I only want it to list the categories than cut to the footer/sidebar.

share|improve this question
Impossible to answer without knowing either a) what Theme you're using, or b) the markup of your category template file. – Chip Bennett Apr 15 '11 at 20:02
digwp.com/2010/02/blank-wordpress-theme This theme (Blank from Chris Coyier) – Maddy Apr 15 '11 at 20:11

Open the archive.php file of the Blank theme and delete this code from the top.

            <?php /* If this is a category archive */ if (is_category()) { ?>
            <h2>Archive for the &#8216;<?php single_cat_title(); ?>&#8217; Category</h2>

        <?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
            <h2>Posts Tagged &#8216;<?php single_tag_title(); ?>&#8217;</h2>

        <?php /* If this is a daily archive */ } elseif (is_day()) { ?>
            <h2>Archive for <?php the_time('F jS, Y'); ?></h2>

        <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
            <h2>Archive for <?php the_time('F, Y'); ?></h2>

        <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
            <h2 class="pagetitle">Archive for <?php the_time('Y'); ?></h2>

        <?php /* If this is an author archive */ } elseif (is_author()) { ?>
            <h2 class="pagetitle">Author Archive</h2>

        <?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
            <h2 class="pagetitle">Blog Archives</h2>

        <?php } ?>
share|improve this answer

That "Posted On" bit is part of the /inc/meta.php template file, that is being included in archive.php.

You can:

1) Modify /inc/meta.php

2) Modify archive.php to remove this include

3) Add a category.php, based on archive.php, but omitting the include of /inc/meta.php


Conditional statement to exclude the category archives:

<?php if ( ! is_category() ) { 

     // we're not on a category archive; do something

} ?>

Try wrapping this around the include() for /inc/meta.php

share|improve this answer
i'm pretty new at wordpress (and all the php codes). what's a good if else statement i can use so that it uses "posted on" on every page except categories? – Maddy Apr 15 '11 at 20:46

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.