All pastes #2076279 Raw Edit

homepage.php

public php v1 · immutable
#2076279 ·published 2011-06-07 17:01 UTC
rendered paste body
<?php/*Template Name: Home Page*/?><?php get_header(); ?>	<div id="container">		<div id="content" role="main">			<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>			<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>				<h2 class="entry-title"><?php the_title(); ?></h2>				<div class="entry-content">					<?php the_content(); ?>				</div><!-- .entry-content -->			<?php endwhile; // end of the loop. ?>				<div id="feat-app">			<?php			$args=array(			 'reviewcats' => 'featured',			 'post_type' => 'review',			 'post_status' => 'publish',			 'posts_per_page' => 1,			 'caller_get_posts'=> 1			);			$featapp_query = null;			$featapp_query = new WP_Query($args);			if( $featapp_query->have_posts() ) {			echo '<h2 class="entry-title">' . __("Featured Android App Review", "theappz") . '</h2>';			 while ($featapp_query->have_posts()) : $featapp_query->the_post(); ?>					<div class="review-content">						<div class="review">							<?php // SOME CODE HERE, ALL IS WORKING FINE AND AS IT SHOULD ?>								</div><!-- .review -->					</div><!-- .review-content -->			<?php endwhile; }			wp_reset_query();  // Restore global post data stomped by the_post().			?>				</div><!-- #feat-app-->				<div id="recent-apps">			<?php			$recentapps_query['tax_query'] = array(			'post_type' => 'review',			 'post_status' => 'publish',			 'posts_per_page' => 10,			 'tax_query' => array(			 'relation' => 'AND',				 array(				 'taxonomy' => 'reviewcats',				 'terms' => array( 'featured' ),				 'field' => 'slug',				 'operator' => 'NOT IN',				 )			 )			);			query_posts($recentapps_query);			echo '<h2 class="entry-title">' . __("Most Recent Android App Reviews", "theappz") . '</h2>';			 while ($recentapps_query->have_posts()) : $recentapps_query->the_post(); ?>					<div class="review-content">						<div class="review">							<?php // SOME CODE HERE, THE MOST RECENT 10 REVIEWS SHOULD SHOW HERE, BUT DON'T ?>						</div><!-- .review -->					</div><!-- .review-content -->			<?php endwhile; wp_reset_query();  // Restore global post data stomped by the_post(). ?>				</div><!-- #recent-apps-->			</div><!-- #post-## -->		</div><!-- #content -->	</div><!-- #container --><?php get_sidebar(); ?><?php get_footer(); ?>