Revision: 46035
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at May 12, 2011 01:00 by nathanbweb
Initial Code
<?php /* Template Name: All posts */ ?> <!-- via bit.ly/wprec-allposts --> <?php get_header(); ?> <?php $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=-1&offset=$debut'); 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; ?> <?php get_sidebar(); ?> <?php get_footer(); ?>
Initial URL
http://bit.ly/wprec-allposts
Initial Description
Initial Title
WordPress page template list all posts
Initial Tags
wordpress
Initial Language
PHP