Make WordPress Core


Ignore:
Timestamp:
03/31/2007 06:16:12 AM (18 years ago)
Author:
matt
Message:

All the query stuff we need for tag= URLs to work.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/default/archive.php

    r5105 r5149  
    22
    33    <div id="content" class="narrowcolumn">
    4 
     4<?php is_tag(); ?>
    55        <?php if (have_posts()) : ?>
    66
     
    88<?php /* If this is a category archive */ if (is_category()) { ?>
    99        <h2 class="pagetitle">Archive for the &#8216;<?php single_cat_title(); ?>&#8217; Category</h2>
    10 
     10<?php } elseif( is_tag() ) { ?>
     11<h2 class="pagetitle">Archive for the &#8216;<?php single_cat_title(); ?>&#8217; Tag</h2>
    1112      <?php /* If this is a daily archive */ } elseif (is_day()) { ?>
    1213        <h2 class="pagetitle">Archive for <?php the_time('F jS, Y'); ?></h2>
     
    4142                </div>
    4243
    43                 <p class="postmetadata">Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?>  <?php comments_popup_link('No Comments &#187;', '1 Comment &#187;', '% Comments &#187;'); ?></p>
     44                <p class="postmetadata"><?php the_tags('Tags: ', ', ', '<br />'); ?> Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?>  <?php comments_popup_link('No Comments &#187;', '1 Comment &#187;', '% Comments &#187;'); ?></p>
    4445
    4546            </div>
Note: See TracChangeset for help on using the changeset viewer.