Reputation: 79
I am looking to get the post_id column after running this code:
$query_args = array (
array(
'key' => 'registration',
'value' => $reg,
'compare' => '='
)
);
$query = new WP_Meta_Query($query_args);
How can I retrieve the post_id for the post please?
Upvotes: 0
Views: 108