add fix problem
This commit is contained in:
30
rsscreate.php
Normal file
30
rsscreate.php
Normal 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');
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user