WordPress.org

Support

Support » How-To and Troubleshooting » A couple problems with date archives

A couple problems with date archives

  • MtnExile

    @mtnexile

    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)
  • JarretC

    @jarretc

    From the 404 error that you mentioned it sounds like something on your server isn’t configured properly. Is this a new site that you just started or did this issue just start appearing?

    MtnExile

    @mtnexile

    Brand new site. Still in the development stage, so this is something that never has worked the way I want it.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘A couple problems with date archives’ is closed to new replies.
Skip to toolbar