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.

One thought on “Making a Permalink to Daily Archives

  1. Pingback: The Indiana Jones School of Management

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>