Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php $removeDuplicates = array(); ?>
- <?php
- $my_query = new WP_Query('category_name=Featured&showposts=1');
- while ($my_query->have_posts()) : $my_query->the_post();
- $do_not_duplicate = $post->ID;
- ?>
- <?php the_post_thumbnail('home-featured'); ?>
- <h2 class="featured-title"><a href="<?php the_permalink(); ?>" title="<?php printf(esc_attr__( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
- <div id="homecatmetafeat">
- By <?php the_author_posts_link(); ?> | <?php if ( function_exists( 'get_relative_date' ) ) {
- echo '' . get_relative_date( get_the_time( 'U' ) ) . ' ago';
- } ?> | <span class="comments-link"><?php comments_popup_link( __( 'Comment', 'twentyten' ), __( '1', 'twentyten' ), __( '%', 'twentyten' ) ); ?></span></div>
- <?php endwhile; ?>
- <div id="homecat">
- <div id="homecatleft">
- <h4>Recaps & Reviews</h4>
- <?php
- query_posts('category_name=Reviews,Recaps&showposts=1');
- if (have_posts()) : while (have_posts()) : the_post();
- if( $post->ID == $do_not_duplicate ) continue;
- $do_not_duplicate = $post->ID; //This is the Magic Line
- ?>
- <div class="homecatimg"><?php the_post_thumbnail('home-cat'); ?></div>
- <h2 class="cattitle"><a href="<?php the_permalink(); ?>" title="<?php printf(esc_attr__( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
- <div class="homecatmeta">
- By <?php the_author_posts_link(); ?> | <?php if ( function_exists( 'get_relative_date' ) ) {
- echo '' . get_relative_date( get_the_time( 'U' ) ) . ' ago';
- } ?> | <span class="comments-link"><?php comments_popup_link( __( 'Comment', 'twentyten' ), __( '1', 'twentyten' ), __( '%', 'twentyten' ) ); ?></span></div>
- <?php endwhile; ?><?php endif; ?>
- <?php
- query_posts('category_name=Reviews,Recaps&showposts=5');
- if (have_posts()) : while (have_posts()) : the_post();
- if( $post->ID == $do_not_duplicate ) continue;
- $do_not_duplicate = $post->ID; //This is the Magic Line
- ?>
- <h2 class="catsubtitle"><a href="<?php the_permalink(); ?>" title="<?php printf(esc_attr__( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
- <?php endwhile; ?><?php endif; ?>
- </div>
- <div id="homecatright">
- <h4>Buffy Rewatch</h4>
- <?php
- query_posts('category_name=Buffy Rewatch&showposts=1');
- if (have_posts()) : while (have_posts()) : the_post();
- if( $post->ID == $do_not_duplicate ) continue;
- $do_not_duplicate = $post->ID; //This is the Magic Line
- ?>
- <div class="homecatimg"><?php the_post_thumbnail('home-cat'); ?></div>
- <h2 class="cattitle"><a href="<?php the_permalink(); ?>" title="<?php printf(esc_attr__( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
- <div class="homecatmeta">
- By <?php the_author_posts_link(); ?> | <?php if ( function_exists( 'get_relative_date' ) ) {
- echo '' . get_relative_date( get_the_time( 'U' ) ) . ' ago';
- } ?> | <span class="comments-link"><?php comments_popup_link( __( 'Comment', 'twentyten' ), __( '1', 'twentyten' ), __( '%', 'twentyten' ) ); ?></span></div>
- <?php endwhile; ?><?php endif; ?>
- <?php
- query_posts('category_name=Buffy Rewatch&showposts=5');
- if (have_posts()) : while (have_posts()) : the_post();
- if( $post->ID == $do_not_duplicate ) continue;
- $do_not_duplicate = $post->ID; //This is the Magic Line
- ?>
- <h2 class="catsubtitle"><a href="<?php the_permalink(); ?>" title="<?php printf(esc_attr__( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
- <?php endwhile; ?><?php endif; ?>
- </div>
- </div>
- <img src="/images/latest.png" style="margin-left:-35px; margin-top: -20px; position: absolute; height: 50px; z-index: 99999;">
- <div id="latest">
- <?php
- query_posts('showposts=8');
- if (have_posts()) : while (have_posts()) : the_post();
- if( $post->ID == $do_not_duplicate ) continue;
- $do_not_duplicate = $post->ID; //This is the Magic Line
- ?>
- <div class="latestwrap">
- <div class="latestthumb"><?php the_post_thumbnail('thumbnail'); ?></div>
- <div class="latesttext">
- <h2 class="latesttitle"><a href="<?php the_permalink(); ?>" title="<?php printf(esc_attr__( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
- <?php the_excerpt(); ?>
- </div>
- </div>
- <?php endwhile; endif; ?>
- </div>
- <?php /* Display navigation to next/previous pages when applicable */ ?>
- <?php if ( $wp_query->max_num_pages > 1 ) : ?>
- <BR><BR><div id="nav-below" class="navigation"><div class="nav-previous">
- <?php if(function_exists('wp_paginate')) {
- wp_paginate();
- } ?> </div> <div class="nav-next"></div>
- </div><!-- #nav-below -->
- <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement