add fix problem

This commit is contained in:
2021-10-11 22:29:11 +03:00
parent bc8d93c91a
commit cbefa787b1
14 changed files with 553 additions and 60 deletions

30
rsscreate.php Normal file
View File

@@ -0,0 +1,30 @@
<?php
include_once '/vhosts/beta/wp-load.php';
date_default_timezone_set('Europe/Moscow');
$posts = get_posts( array(
'numberposts' => 20,
'category' => 2,
'orderby' => 'date',
'order' => 'DESC',
'include' => array(),
'exclude' => array(),
'meta_key' => '',
'meta_value' =>'',
'post_type' => 'post',
'suppress_filters' => true, // подавление работы фильтров изменения SQL запроса
));
if( $posts ){
include('views/rss/yanews.php');
}