A couple problems with date archives
-
I’m trying to make WordPress show a list of all articles posted on a certain day, so that when you click on the date of the post you get the list. This is the code I tried, which doesn’t work:
<div class="entry-meta"> <span class="entry-date"><a href="<?php wp_get_archives('type=daily');??>"><?php the_time('F j, Y') ?></a></span> </div>
Using wp_get_archives outside of a URL works fine for the Archive list accessible in the sidebar.
The other problem is that if I click on the date link of a post, I get a 404 error…but it’s not the WordPress 404 page. It’s being generated by the server: “The resource requested could not be found on this server!” Is this a sign that something more important is awry?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘A couple problems with date archives’ is closed to new replies.