The get_archives() and wp_get_archives() template tags offers a postbypost option for the ‘type’ parameter, which provides titles as links to the posts (may want to look at the ‘limit’ parameter as well).
http://codex.wordpress.org/Template_Tags/get_archives
http://codex.wordpress.org/Template_Tags/wp_get_archives
Good enough?
I’ll check into it. Thanks.
That works great thanks. Are there any ways to tweak it so that it will show all the posts not on the front page? I have the display set to 10 posts on the main page and the post list starts with that page. It’s a pretty minor issue since the main problem is solved by having a list of post titles for clicking but it would be nice to be able to have a parameter that allows showing all post titles after the first 10 or whatever the amount is set at in the WP settings.
It would mean updating the Sidebar file to match if I change the number of posts on a page but that is no big deal.
Unfortunately get_archives() / wp_get_archives() don’t offer the ability to offset the arvchive links. However, you can duplicate it and make use of an offset through the get_posts() function:
<ul>
<?php $archive = get_posts('numberposts=20&offset=10'); ?>
<?php foreach($archive as $post) : ?>
<li><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></li>
<?php endforeach; ?>
</ul>
A bit more complicated than a single template tag, but it works. The ‘numberposts’ and ‘offset’ parameter values should be obvious.
Thanks Kafka, it works perfectly, a very elegant solution.
I appreciate the help.