How to design an Archive Page?
-
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: https://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: https://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(); ?>
- The topic ‘How to design an Archive Page?’ is closed to new replies.