luftikus143
Member
Posted 4 years ago #
Hi there,
I have a photoblog ( http://photoblog.la-famille-schwarzer.de/ ) with a nice archive ( http://photoblog.la-famille-schwarzer.de/?m=2007 ). As we are now in 2008, and not anymore in 2007, it looks a bit ugly and unsatisfying if I use m=2008.
Is there anyway to either display
1) all existing entires (2008, 2007 etc.)
2) the entries of two years (2007+2008)
3) the entries of the last 12 months
Thanks for any hints!
<?php wp_get_archives('type=monthly'); ?>
is supposed to display all existing months, I suppose.
luftikus143
Member
Posted 4 years ago #
Thanks. But I don't want to list the months; I want to list (the content of) all entries for all months.
Oh, I'm sorry for the misunderstanding. I suppose you want to have all posts to be listed at the index page. If that's the case, do you have
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
in index.php? But you can see all posts by clicking on 'archive' anyway, can't you?
luftikus143
Member
Posted 4 years ago #
I have that line of code in my file, yes. But as the URL indicated a "?m=2007", it will display only those entries of the year 2007. But I want it to display all posts, no matter if they had been posted in 2006, 2007 or 2008...
luftikus143
Member
Posted 4 years ago #
Hmmm.... so no way that this could be done with something like
?m=2007+2008
That would be pretty straightforward...
Thanks for any suggestions...