| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 | <?php/*Template Name: Blog Template*/?><?phpget_header(); ?><div id="main-content" class="main-content inner-wrapper">	<div id="primary" class="content-area">		<div id="content" class="site-content" role="main">			<?php	 		 		 	 if(have_posts()): ?>       <?php$temp = $wp_query;$wp_query= null;$wp_query = new WP_Query();$wp_query->query('posts_per_page=5'.'&paged='.$paged);while ($wp_query->have_posts()) : $wp_query->the_post();?>        										<a href="<?php	 		 		 	 the_permalink() ?>"><h2><?php	 		 		 	 the_title() ?></h2></a>				<?php	 		 		 	 the_content() ?>				<?php	 		 		 	 if(is_page() or is_single()): ?>				<?php	 		 		 	 the_content() ?>				<?php $wp_query = null; $wp_query = $temp;?>				<p class="small">Posted by <a href="<?php	 		 		 	 the_author_meta('user_url'); ?>"><?php	 		 		 	 the_author() ?></a> on <?php	 		 		 	 the_date() ?>, at <?php	 		 		 	 the_time() ?></p>				<a href="<?php	 		 		 	 the_permalink() ?>" class="left"><?php	 		 		 	 the_post_thumbnail('thumbnail'); ?></a> 				<?php	 		 		 	 the_excerpt() ?>				<p><a href="<?php	 		 		 	 the_permalink() ?>">Read More →</a></p>				<?php	 		 		 	 endif ?>				<div class="clear"></div>				<div class="meta"><?php	 		 		 	 _e("FILED UNDER:"); ?> <?php	 		 		 	 the_category(',') ?><br />				<?php	 		 		 	 the_tags(__('TAGGED AS: '), ', ', ''); ?> 				<p><?php	 		 		 	 edit_post_link(__('Edit This')); ?></p>				</div>				<div class="feedback">					<?php	 		 		 	 wp_link_pages(); ?>					<?php	 		 		 	 comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)')); ?>				</div>				<?php	 		 		 	 comments_template(); // Get wp-comments.php template ?>					<hr />        <?php	 		 		 	 endwhile ?>        <?php	 		 		 	 endif ?> <div id="clear"></div>		</div><!-- #content -->	</div><!-- #primary --></div><!-- #main-content --><?php get_footer(); ?>
 |