Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php get_header(); ?>
- <?php if (have_posts()) : ?>
- <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
- <?php /* If this is a category archive */ if (is_category()) { ?>
- <h2 class="title">‘<strong><?php single_cat_title(); ?></strong>’ Category Archive</h2>
- <?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
- <h2 class="title">‘<strong><?php single_tag_title(); ?></strong>’ Tagged Posts</h2>
- <?php /* If this is a daily archive */ } elseif (is_day()) { ?>
- <h2 class="title"><strong><?php the_time('F jS, Y'); ?></strong> Archive</h2>
- <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
- <h2 class="title"><strong><?php the_time('F, Y'); ?></strong> Archive</h2>
- <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
- <h2 class="title"><strong><?php the_time('Y'); ?></strong> Archive</h2>
- <?php /* If this is an author archive */ } elseif (is_author()) { ?>
- <?php $author = get_userdata( get_query_var('author') );?>
- <h2 class="title2"><?php echo $author->display_name;?> @ Xblog</p>
- <h2 class="numberofposts">Total number of posts at Xblog: <strong><?php the_author_posts(); ?></strong></h2>
- <br><br>
- <?php the_author_posts_link(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement