I got project with watch categories and watch pages . So i want to use post_object to select my registered categories from ‘post-type’ to show for example only men watches in men watches categories etc.
I can’t understand why i cant show my posts with value of category what i choose at post page
$args = array(
'numberposts' => -1,
'post_type' => 'watch-page',
'order' => 'ASC',
'meta_query' => array(
'key' => 'category_to_select',
'value' => $cat, // actually i dont know what should i type here to show my posts
'compare' => '!='
$the_query = new WP_Query( $args );
Please tell me what am i doing wrong.
at this point i got only posts where no categories selected. That all what i did, but i need to do another task.