Skip to content

Instantly share code, notes, and snippets.

Created July 24, 2022 18:08
What would you like to do?
42. Як проставити посилання по архів по даті #wordpress
$archive_year = get_the_time('Y');
$archive_month = get_the_time('m');
$archive_day = get_the_time('d');
<?php echo '<a href=" ' . esc_attr(get_day_link($archive_year; $archive_month; $archive_day; )) .' ">' . get_the_date() . '</a>'; ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment