How to offset display of archives?
-
Hey, all.
On the front page of my site, I display one day’s entries. But I also want to have links to the two previous days’ posts.
Problem: I get two links to appear, but one is always for the current day. So on Wednesday, I *want* to have links to Tuesday’s and Monday’s archive pages, but I end up with links to Wednesday’s and Tuesday’s.
Here’s the code I use:
<?php wp_get_archives('type=daily&limit=2&offset=1'); ?>
I realize that offset doesn’t work with wp_get_archives. Is there something that will work?
Many thanks for any suggestions!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How to offset display of archives?’ is closed to new replies.