Query with answers & unsolved

3.41K viewsCore
1

Hi.

I want make a page to my self, that show questions that have comments and are not solved.

With this query I can show the unsolved questions:

$args = array(
  'post_type'  => 'question',
  'meta_key' => ANSPRESS_SELECTED_META,
  'meta_compare' => '=',
  'meta_value' => false,
  'paged' => $paged,
);

And with this, I can show the questions that have answers:

$args = array(
  'post_type'  => 'question',
  'meta_key' => ANSPRESS_ANS_META,
  'meta_compare' => '=',
  'meta_value' => true,
  'paged' => $paged,
);

But I don’t know how to make a query with both. I tried a few things, but with no luck.

Any help, if you can, will be greatly appreciated.

Thanks.