Support » Fixing WordPress » Archiving posts

  • I am currently only showing 2 posts on the homepage of my blog. There is a sticky post that gets updated every day and then there is 1 post below that this gets created every day. I only wanted to have these 2 posts to make sure the front page is short and doesn’t go on forever. However a problem I am running into now is that if I click on any month in the Archives, it only shows 1 post at a time. Is there any way I can click on the Month of March 2010 for example and have it show every single post made in that month. It doesn’t have to show every detail, Just the title of the post is needed. In fact I would prefer it to just show the title and no other information like author, date etc.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You would need to change the default number of post shown per page in Admin/Settings/Reading to reflect the number of post you want displayed on archive pages, then create a custom query for the front page limiting it to just 2 posts.

    I have been trying all night and can’t figure it out. I am a designer and have very limited experience with coding. Any ideas?

    <?php get_header(); ?>
    <!-- CONTENT -->
      <div id="content">
        	<?php if (have_posts()) : ?>
        		<?php while (have_posts()) : the_post(); ?>
        			<h1><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e('Permanent link to this post','grey_matter'); ?>"><?php the_title(); ?></a></h1>
              <?php the_content(__('Read the rest of this post &raquo;','grey_matter')); ?>
        			<div id="postmeta">
                <?php include("inc.postmeta.php"); ?>
        		<?php endwhile; ?>
      			<div id="navigation">
       				<div class="left"><?php next_posts_link(__('&laquo; Older Entries','grey_matter')) ?></div>
     	  			<div class="right"><?php previous_posts_link(__('Newer Entries &raquo;','grey_matter')) ?></div>
    		<?php else : ?>
    			<h1><?php _e('Oops! This blog is brand new','grey_matter'); ?></h1>
    			<p><?php //_e('No posts found.','grey_matter'); ?></p>
    		<?php endif; ?>
      <?php get_sidebar(); ?>
    <!-- /CONTENT -->
    <?php get_footer(); ?>
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Archiving posts’ is closed to new replies.