0

How I use the_date with link, a link to archive same date.

<?php the_date('l j F Y', '', ''); ?>

When there are multiple posts on a page published under the SAME DAY, the_date() only displays the date for the first post (that is, the first instance of the_date()).

Function Reference/the date

the_date

  • I'm not sure what you're asking, can you describe the problem in more detail? – Milo Sep 25 '15 at 18:35
  • This function shows date only once without a link. I want to show this with a link to the same date that displays. codex.wordpress.org/Function_Reference/the_date – Horby Sep 25 '15 at 18:40
  • A link to what? A date archive? – Milo Sep 25 '15 at 18:44
  • Yes, a link to archive of the same date displayed! – Horby Sep 25 '15 at 18:45
  • I think you want get_day_link. – Milo Sep 25 '15 at 18:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.