Skip to content


Making a Permalink to Daily Archives

If you want to create a permalink in WordPress to all entries on a particular day, it’s pretty simple:

<?php echo mysql2date('Y/m/d', $post->post_date); ?>

For me, I put http://ijsm.org/archives/[echo statement] in an anchor I’ve placed this around my instance of the_date to get a permalink that has the date. I suggest adding a title=”Permalink to entries on this date” to the anchor element in an effort to make it clear to your readers what you are doing.

Popularity: 8% [?]

Posted in WordPress.


One Response

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

Continuing the Discussion

  1. The Indiana Jones School of Management linked to this post on 6/10/2004

    Permalinks to Daily Archives
    Forever progressing slowly towards better IJSM usability.



Some HTML is OK

or, reply to this post via trackback.