diff --git a/blocks/moread.php b/blocks/moread.php index dbc0373..26e0aa1 100644 --- a/blocks/moread.php +++ b/blocks/moread.php @@ -33,7 +33,8 @@ if( $posts ): setup_postdata( $post );?>
- <?the_title();?> + + <?the_title();?>
diff --git a/category.php b/category.php index a0b6d69..9ed1661 100644 --- a/category.php +++ b/category.php @@ -50,7 +50,8 @@ $nn = 0;?>
- <?the_title();?> + + <?the_title();?> diff --git a/functions.php b/functions.php index 9f1a4f2..07953ce 100644 --- a/functions.php +++ b/functions.php @@ -10,6 +10,8 @@ define("COOK_VALUE", "7896"); define('VIJ_CACHE', ABSPATH.'wp-content/themes/vij/cache/'); define('BASE_VIJ', ABSPATH.'wp-content/themes/vij/'); +define('IMGSERVER', 'https://img.vetandlife.ru/'); + require ABSPATH.'/vendor/autoload.php'; #отключаем автообновления @@ -168,6 +170,18 @@ add_filter( 'single_template', function ( $single_template ) { }, PHP_INT_MAX, 2 ); +#search +function my_search_order( $query ) { + if ($query->is_search) { + $query->set( 'order', 'DESC' ); + $query->set( 'orderby', 'date' ); + }; + return $query; +}; + +add_filter( 'pre_get_posts', 'my_search_order' ); + + function kuri_set($name = null, $value = null) { diff --git a/index.php b/index.php index ce2b988..6aff48b 100644 --- a/index.php +++ b/index.php @@ -48,7 +48,8 @@ $nn = 0;?>
@@ -57,7 +57,7 @@ name;?>,
- +
diff --git a/single-37.php b/single-37.php deleted file mode 100644 index 1a4ded8..0000000 --- a/single-37.php +++ /dev/null @@ -1,93 +0,0 @@ - - - - - -
- - - - - - term_id; - $category_link = get_category_link($category_id); - $post_id = get_the_ID(); - ?> - - - -
- - -
-
-

- - - - - -
- <?the_title();?> -
-
- -
- -
- -
-
- name;?>, -
-
- -
-
- -
-

Свежие отраслевые новости на нашем канале в Telegram

-

Добавьте «Ветеринарию и жизнь» в избранное в ЯНДЕКС.НОВОСТИ

-

Подписывайтесь на канал «ВиЖ» в ЯНДЕКС.ДЗЕН

-
- - - - - -
- -
- - -
- - - -
- -
- - - -
- - - - - diff --git a/single-61.php b/single-61.php index 235eaa0..5e840ee 100644 --- a/single-61.php +++ b/single-61.php @@ -25,7 +25,7 @@ name;?>
- +
@@ -61,7 +61,7 @@ name;?>,
- +