Hello,
Im using this code and it works very good! I list the last 10 posts with it.
Now i want a link to list older posts. Does somebody know how to do that? I would be very happy! ??
@ Yasp0: change the 10 in my code to 3
<?php
$args=array(
'post_type' => 'post',
'post_status' => 'publish',
'posts_per_page' => 10,
'caller_get_posts'=> 1
);
$my_query = null;
$my_query = new WP_Query($args);
if( $my_query->have_posts() ) {
echo '';
while ($my_query->have_posts()) : $my_query->the_post(); ?>
<li><a class="sidebar" href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a><h5 class="postdate"><?php the_time('d.m.y') ?></h5></li>
<?php
endwhile;
}
wp_reset_query();