Displaying only 1 posts on homepage
-
Hi,
Although I’ve set to display 10 posts per page in wp-admin, but homepage still have only a single post, hides all previous ones.
I’m designing a custom theme, here’s the loop code:
<?php get_header(); ?> <?php if (have_posts()) : the_post(); ?> <!-- start content --> <div id="content"> <div class="post" id="post-<?php the_ID(); ?>"> <h1 class="title"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"> <?php the_title(); ?> </a></h1> <div class="entry"> <?php the_content('Read the rest of this entry »'); ?> </div> <div class="clearfix"> <!-- META --> <div class="meta"> <!--<small> <?php the_time('F jS, Y') ?> | <?php the_author() ?> <?php edit_post_link('Edit', ' | ', ''); ?> </small>--> <!--<p class="tags"> <?php the_tags('Tags: ', ', ', ' '); ?> </p>--> <?php if (function_exists('sociable_html')) { print sociable_html(Array("del.icio.us", "StumbleUpon", "Facebook")); } ?> <div class="links"> <?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?> <!--<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>">Permalink</a>--> </div> </div> <!-- /META --> </div> </div> </div> <!-- end content --> <?php else : ?> <h2 class="center">Not Found</h2> <p class="center">Sorry, but you are looking for something that isn't here.</p> <?php include (TEMPLATEPATH . "/searchform.php"); ?> <?php endif; ?> <?php get_sidebar2(); ?> <?php get_sidebar(); ?> <!-- <div class="navigation"> <div class="alignleft"><?php next_posts_link('« Older Entries') ?></div> <div class="alignright"><?php previous_posts_link('Newer Entries »') ?></div> </div> --> <?php get_footer(); ?>
What am I doing wrong?
Any help appreciated. Many thanks.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Displaying only 1 posts on homepage’ is closed to new replies.