recent posts in sidebar.php
-
What do I have to write, to get recent posts in my sidebar? I also want to style the recent posts links later.
I tried this:
<?php query_posts(‘showposts=10’); ?>
- <h2>Recent Posts</h2>
-
<?php while (have_posts()) : the_post(); ?>
- ‘><?php the_title(); ?>
<?php endwhile; ?>
But my page and post links stopped working! Looked like the page updated when you clicked the links, but the content (the posts) didn’t do anything!
Please help me someone!! I have to get this to work!
/Hans
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘recent posts in sidebar.php’ is closed to new replies.