Skip to content

Instantly share code, notes, and snippets.

@frontend-coder
Created July 24, 2022 18:08
Show Gist options
  • Save frontend-coder/db8fcdbe23421d2b0715b15d7181b8a8 to your computer and use it in GitHub Desktop.
Save frontend-coder/db8fcdbe23421d2b0715b15d7181b8a8 to your computer and use it in GitHub Desktop.
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