I have a some categories and want to get the posts with those categories:
$temp = $wp_query; // assign ordinal query to temp variable for later use
$wp_query = null;
$wp_query = new WP_Query('cat=85');
if($wp_query->have_posts()) {
...
}
But it is not entering in the if
condition. The category with id=85
exists and some posts are using it. So I don't understand why it is not returning any post.
Any idea. Am I doing something wrong?