I'm trying to get all posts in certain category, but I'm getting empty array. Here is my code:
$posts_args = array(
'numberposts' => 6,
'category' => 14,
'orderby' => 'date',
'order' => 'DESC',
'post_type' => 'post'
);
$posts_array = get_posts($posts_args);
echo "<pre>";
print_r($posts_array);
echo "</pre>";
But in admin panel displaying properly.