Archives by title (with date)
-
I’ve been working on a sub site for a podcast where I want to use the “wp_get_archives” tag to pull a page together with the last 100 posts, in order.
Got this:
<?php wp_get_archives(
'type=postbypost
&limit=100
&format=custom
&before=<br />
&after=<br />');
?>
It works great, but I’d really like to add a second line showing the date, like this:
<?php wp_get_archives(
'type=postbypost
&limit=100
&format=custom
&before=<br />
&after=<?php the_date(); ?><br />');
?>
As you know, adding php in a string like this doesn’t quite work.
How can I add a second line featuring the post date of each title from the archives?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Archives by title (with date)’ is closed to new replies.