Different number of posts on frontpage and archive view... (3 posts)

  1. higurra
    Posted 7 years ago #


    I've set "dashboard > settings > reading > Blog pages show at most" value to 1. So that the first page only shows the most recent post wich is working just fine.

    But on my archive.php template I want wordpress to show every singel "posttitle"(topic) from the month the visitors chosen.

    Here's what the template looks like now. (template.php)

    <?php get_header(); ?>
     <div id="content" class="narrowcolumn">
      <?php if (have_posts()) : ?>
       <?php while (have_posts()) : the_post(); ?>
         <div class="post">
         <h2 id="post-<?php the_ID(); ?>">
    <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
         <small><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --></small>
        <?php endwhile; ?>
    <div class="navigation">
    <div class="alignleft">
    <?php posts_nav_link('','','&laquo; Previous Entries') ?>
    <div class="alignright">
    <?php posts_nav_link('','Next Entries &raquo;','') ?>
    <?php else : ?>
      <h2 class="center">Not Found</h2>
     <p class="center"><?php _e("Sorry, but you are looking for something that isn't here."); ?></p>
      <?php endif; ?>
    <?php get_footer(); ?>

    The problem is that the template seems to use the "dashboard > settings > reading > Blog pages show at most" for archive.php aswell.

    How do I make template.php show all posts from each chosen month on a single page?


  2. minute44
    Posted 7 years ago #

  3. higurra
    Posted 7 years ago #

    Big thanks minute44! THx

Topic Closed

This topic has been closed to new replies.

About this Topic