I am trying to make a list of custom post type which going to show all posts but only if author contains custom user meta named "activeacc".
So.. I have thic code...
$args = array(
'post_type' => 'property',
'post_status' => 'publish'
);
$your_query = new WP_Query( $args );
while ( $your_query->have_posts() ) {
$your_query->the_post();
$the_title = get_the_title(); // variable $the_title now holds your title
}
Is it possible to add to this $args whether the author contains custom user meta 'activeacc'? If not, then do not show this posts (even they have "publish" status)?