Custom query ignores scope=future
-
Hello,
I’m trying to make a custom query to take the future events and display them in another custom plugin I’ve made. I’m using this query, but it will bring all the events, future and past, and ignore the scope. What’s wrong here? Thanks for your help.
$query_args = array( 'post_type' => $post_type, 'posts_per_page' => $posts_per_page, 'category_name' => $category_name, 'tag' => $tag, 'orderby' => $orderby, 'order' => $order, 'scope' => 'future', 'meta_key' => '_thumbnail_id' // Should pull only content with featured images ); /* Allow the query args to be filtered */ $query_args = apply_filters( 'arconix_flexslider_query_args', $query_args ); $fquery = new WP_Query( $query_args );
Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
- The topic ‘Custom query ignores scope=future’ is closed to new replies.