add imgurl
This commit is contained in:
@@ -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) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user