I’m making an attempt to question youngster posts from two mother and father (that half is working superb),
… however now I wish to exclude posts which have a meta_key of ‘characteristic’ with a meta_value of ‘1’
Utilizing the Codex reference I’ve tried a few methods to jot down this, not working.
Here is what I’ve written so far, I consider I am shut, however need assistance.
Thanks!
<?php
$argsthis = array(
'post_status' => 'publish',
'post_type' => 'web page',
'order' => 'DESC',
'posts_per_page' => '5',
'post_parent__in' => array(10,11),
'meta_query' => array(
array(
'key' => 'characteristic',
'worth' => '1',
'evaluate' => '!=',
),
)
);
?>
and I’ve tried, merely (w very same consequence as above):
<?php
$argsthis = array(
'post_status' => 'publish',
'post_type' => 'web page',
'order' => 'DESC',
'posts_per_page' => '5',
'post_parent__in' => array(10,11),
'meta_key' => 'characteristic',
'meta_value' => '1',
'meta_compare' => '!=',
),
)
);
?>