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 .= '' . esc_html($title) . '' . PHP_EOL; + $meta_tags .= '' . PHP_EOL; + $meta_tags .= '' . PHP_EOL; + + $meta_tags .= '' . PHP_EOL; + + $og_tags .= '' . PHP_EOL; + $og_tags .= '' . PHP_EOL; + $og_tags .= '' . PHP_EOL; + } elseif (is_single() || is_page()) { $post = get_queried_object(); diff --git a/header.php b/header.php index b87b5f2..9d3e0e9 100644 --- a/header.php +++ b/header.php @@ -135,7 +135,7 @@ height="0" width="0" style="display:none;visibility:hidden">
-

Самое читаемое

+

Главное сегодня

diff --git a/sidebar-left.php b/sidebar-left.php index 72aedf7..0a71f6b 100644 --- a/sidebar-left.php +++ b/sidebar-left.php @@ -16,7 +16,7 @@
-

Самое читаемое

+

Главное сегодня

diff --git a/sidebar-right.php b/sidebar-right.php index eebd3b4..1a6b9b5 100644 --- a/sidebar-right.php +++ b/sidebar-right.php @@ -1,7 +1,7 @@
-

Самое читаемое

+

Главное сегодня

diff --git a/single-events.php b/single-events.php index 72df703..a53ddfe 100644 --- a/single-events.php +++ b/single-events.php @@ -43,7 +43,7 @@ $categoryLink = get_queried_object()->slug;
-->
- Все мероприятия + Все мероприятия