StudioPress Community Forums
  StudioPress Community Forums > Forums > General Discussion
For help and support, access to your downloads, or to manage your account please log into My StudioPress.

These forums have been set to read-only so you can browse the existing topics for any questions you may have -- and this forum will be removed on July 1st, 2013.

For general discussion on WordPress, CSS and design (NOT for support) visit the new Community Forums.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 07-07-2009, 04:34 PM
ifeelok ifeelok is offline
Registered User
Pro Plus Member
 
Join Date: Jul 2009
Posts: 12
Default blog page template

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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT -5. The time now is 03:00 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.