Last active
August 10, 2018 12:36
-
-
Save mdjwel/738df6311a15a8584f7a2954c22f8da7 to your computer and use it in GitHub Desktop.
Get the day link in WordPress post loop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Day link to archive page | |
function prefix_day_link() { | |
$archive_year = get_the_time('Y'); | |
$archive_month = get_the_time('m'); | |
$archive_day = get_the_time('d'); | |
echo get_day_link( $archive_year, $archive_month, $archive_day); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment