![]() |
|
||||||
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
I screwed up my blog page template by mistake and now its not working. can someone repost the entire code or tell me what I need to fix it --Thanks so much
<?php /* Template Name: Blog */ ?> <?php get_header(); ?> <div id="content"> <div id="contentleft"> <div class="postarea"> <?php include(TEMPLATEPATH."/breadcrumb.php");?> <?php $page = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts("cat=".get_theme_mod('blog_cat')."&sho wposts=".get_theme_mod('blog_cat_num')."&paged=$pa ge"); while ( have_posts() ) : the_post() ?> <h1><?php the_title<?php $page = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts("showposts=".get_theme_mod('blog_cat_n um')."&paged=$page"); while ( have_posts() ) : the_post() ?>); ?></h1> <div class="date"> <div class="dateleft"> <span class="time"><?php the_time('F j, Y'); ?></span> <?php _e("by"); ?> <?php the_author_posts_link(); ?> <?php edit_post_link(__('(Edit)'), '', ''); ?> <?php _e("Filed under"); ?> <?php the_category(', ') ?></p> </div> <div class="dateright"> <span class="icomment"><?php comments_number(__('Leave a Comment'), __('1 Comment'), __('% Comments')); ?></span></p> </div> </div> <?php the_excerpt(__('[Read more]'));?><div class="clear"></div> <div class="postmeta2"> Filed Under: <?php the_category(', ') ?> <?php _e("Tagged"); ?>: <?php the_tags('') ?> </div> <?php endwhile; ?> <?php posts_nav_link(); ?></p> </div> </div> <?php include(TEMPLATEPATH."/sidebar.php");?> </div> <?php // The main column ends ?> <?php get_footer(); ?> |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Blog Page Template | digitalblue | General Discussion | 6 | 04-29-2010 08:06 AM |
| Page set to blog template does not appear | zedman | General Discussion | 1 | 01-02-2009 04:14 PM |
© Copyright 2012 Copyblogger Media LLC · StudioPress™ is a trademark of Copyblogger Media LLC
Privacy Policy | Refund Policy | Terms of Service | Affiliate Program | Contact Us