My Wp_query Is followin
$args = array(
'post_type' => DR_QUES_POST_TYPE_QUESTIONNAIRE,
'posts_per_page' => -1,
'post_status' => 'publish',
'tax_query' => array(
array(
'taxonomy' => 'course-data',
'field' => 'slug',
'terms' => $name
),
),
);
$query = new WP_Query( $args );
I want you fetch only Post ID
and post_title
fields using posts_fields
filter.
If any suggestion then give me idea.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire