Forums

How to design an Archive Page? (5 posts)

  1. helloPaul
    Member
    Posted 2 years ago #

    Hello!

    I want to design my archive page but I don't know how to do this.

    At the moment my archive page looks like this: http://img39.imageshack.us/img39/2149/archive1.jpg (where "Poprzednie" means "Previous" and it links to the previous post from that month)

    I'd like it to looks like this: http://img32.imageshack.us/img32/5120/archive2a.jpg

    So the previous link will no longer be there and the posts will show as excerpts one above other. The most important thing is that it must show only posts from chosen month.

    The problem is that my code gets whole footer automatic so I don't know how to remove "Poprzednie/Previous" from the archive page and I don't know how to code one excerpt above other.

    Here's the code of my archive page:

    <?php get_header(); ?>
    
            <!-- s: SiteContent -->
            <div id="SiteContent">
                <div class="container">
    
    	<?php if (have_posts()) : ?>
    	<?php while (have_posts()) : the_post(); ?>
    
                    <!-- s: Entry -->
                    <div class="Entry">
                      <div <?php post_class() ?> id="post-<?php the_ID(); ?>">
                        <div class="head floatfix">
                            <h1><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1>
                            <h5><?php the_time('F jS, Y') ?> <?php the_author() ?></h5>
                        </div>
                        <div class="content">
                          <?php the_excerpt('<h5>czytaj dalej</h5>'); ?>
                        </div>
                        <div class="footer floatfix">
                        </div>
                      </div>
                    </div>
                    <!-- e: Entry -->
    
    	<?php endwhile; ?>
    	<?php endif; ?>
    
                </div>
            </div>
            <!-- e: SiteContent -->
    
    <?php get_footer(); ?>
  2. helloPaul
    Member
    Posted 2 years ago #

    As I see this is the code which defines what I want to do:

    <?php query_posts("category_name=news&monthnum=$month"); ?>

    but still, it shows only posts from CURRENT month. So if I click on december, it won't show me that.

  3. helloPaul
    Member
    Posted 2 years ago #

    Anyone?

  4. helloPaul
    Member
    Posted 2 years ago #

    :(

  5. Gerald
    Member
    Posted 2 years ago #

    Probably it would help if you provided a link to your site and the name/link of the theme you are using.

Topic Closed

This topic has been closed to new replies.

About this Topic