-1, // get all posts.
'meta_query' => array(
array(
'post_type' => 'post',
'field' => 'id',
'terms' => 5,
'key' => 'newsophy_picked_post',
'value' => true
),
),
'fields' => 'ids', // Only get post IDs
));
}
else{
$post_ids = get_posts(array(
'numberposts' => 6, // get all posts.
'meta_query' => array(
array(
'post_type' => 'post',
'orderby' => 'post_date',
'order' => 'DESC',
'key' => 'newsophy_pick_latest',
'value' => true
),
),
'fields' => 'ids', // Only get post IDs
));
}
$args = array(
'ignore_sticky_posts' => 1,
'showposts' => 6,
'post__in' => $post_ids,
);
$feat_query = new WP_Query( $args );
?>
have_posts()) : while ($feat_query->have_posts()) : $feat_query->the_post();
?>
esc_html__('Reply', 'newsophy'), 'add_below' => 'comment', 'depth' => $depth, 'max_depth' => $args['max_depth']))) ?> comment_approved == '0') : ?>