diff --git a/front-page.php b/front-page.php index b38076b..2084928 100644 --- a/front-page.php +++ b/front-page.php @@ -17,7 +17,7 @@ $query = new WP_Query($args); ?> false, 'query' => $query]); ?> -
+ diff --git a/functions.php b/functions.php index 7d349d4..1ba7018 100644 --- a/functions.php +++ b/functions.php @@ -639,9 +639,9 @@ function custom_meta_tags() { $term = get_queried_object(); $canonical_url = get_term_link($term); - if ($paged > 1) { + //if ($paged > 1) { $meta_tags .= '' . PHP_EOL; - } + // } $title = $term->name . ' - ' . $sitename; $description = !empty(trim($term->description)) ? $term->description : $term->name; @@ -657,6 +657,25 @@ function custom_meta_tags() { $og_tags .= '' . PHP_EOL; $og_tags .= '' . PHP_EOL; + } elseif (is_author()) { + $author = get_queried_object(); + $author_name = $author->display_name; + $author_description = get_the_author_meta('description', $author->ID); + $canonical_url = get_author_posts_url($author->ID); + + $title = 'Материалы автора ' . $author_name . ' - ' . $sitename; + $description = !empty($author_description) ? $author_description : 'Материалы, опубликованные автором ' . $author_name; + + $meta_tags .= 'Самое читаемое
+Главное сегодня
Самое читаемое
+Главное сегодня
Самое читаемое
+Главное сегодня