groups

name language licence
archive PHP GPL 2
Display PHP on a Single Page PHP BSD
ALTERNATING ROWS (WORDPRESS VERSION) PHP BSD
WORDPRESS (WP) CUSTOM FIELDS PHP BSD
WORDPRESS STATIC HTML TEMPLATE PHP BSD
gallery PHP GPL 2
Display In 2-Column Table PHP BSD
WordPress custom post listing PHP BSD

< 1 2 3 4 5 6 7 8 9 10 11 12 >



language: PHP
licence: GPL 2

archive

options: view full snippetsend to code collector
<?php get_header(); rewind_posts(); ?>
<div class="span-14 box" id="content">   
		<?php 
		query_posts($query_string.'&posts_per_page=24');
		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()) { ?>
		<h3 class="sub"><?php single_cat_title(); ?></h3>
 	  <?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
		<h3 class="sub">Posts Tagged ‘<?php single_tag_title(); ?>’</h3>
 	  <?php /* If this is a daily archive */ } elseif (is_day()) { ?>
		<h3 class="sub">Archive for <?php the_time('F jS, Y'); ?></h3>
 	  <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
		<h3 class="sub">Archive for <?php the_time('F, Y'); ?></h3>
	
(Continues...)