Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- Template Name: Archives
- */
- ?>
- <?php get_header();?>
- <!-- begin colLeft -->
- <div id="colLeft">
- <?php
- $posts_to_show = 50; //Max number of articles to display
- $debut = 0; //The first article to be displayed
- ?>
- <?php while(have_posts()) : the_post(); ?>
- <h2><?php the_title(); ?></h2>
- <ul>
- <?php
- $myposts = get_posts('numberposts=$posts_to_show&offset=$debut&posts_per_page=-1');
- foreach($myposts as $post) :
- ?>
- <li><?php the_time('d/m/y') ?>: <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
- <?php endforeach; ?>
- </ul>
- <?php endwhile; ?>
- </div>
- <!-- end colleft -->
- <?php get_sidebar(); ?>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement