Only 1 blog post showing on front page
-
Hi,
I just launched a new blog, and have discovered that only 1 post shows on the main page. I have 10 posts per page set in the settings. After reviewing other questions in the forum, it may be that the posts are hardcoded on the index.php, but I’m not sure.
I have posted the code below. If it is hardcoded, how can I undo that and get it to add more than 1 blog post on the page?
<?php get_header(); ?> <div id="content_box"> <div id="content" class="posts"> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2> <h4><?php the_time('F jS, Y'); ?><!-- by <?php the_author() ?> --> · <?php the_category(', '); ?> <?php edit_post_link('Edit', ' · ', ''); ?></h4> <div class="entry"> <?php the_content('[Read more →]'); ?> </div> <p class="tagged"><span class="add_comment"><?php comments_popup_link('→ No Comments', '→ 1 Comment', '→ % Comments'); ?></span><strong>Tags:</strong><?php the_tags('','·',''); ?></p> <div class="clear"></div> </div> <?php endwhile; ?> <?php include (TEMPLATEPATH . '/navigation.php'); ?> <?php else : ?> <h2 class="page_header center">Not Found</h2> <div class="entry"> <p class="center">Sorry, but you are looking for something that isn't here.</p> <?php include (TEMPLATEPATH . "/searchform.php"); ?> </div> <?php endif; ?> </div> <?php get_sidebar(); ?> </div> <?php get_footer(); ?>
Thanks.
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘Only 1 blog post showing on front page’ is closed to new replies.