I made custom post type and used a meta query â¦
For this link:
wp-admin/edit.php?s&post_status=all&post_type=itinerary&action=-1&m=0&ipt_country=0&ipt_city=0&paged=1&mode=list&action2
⦠I want this this meta query to apply:
'meta_query' => array(
array(
'key' => 'ipt_country',
'value' => $qv['ipt_country']
),
array(
'key' => 'ipt_city',
'value' => $qv['ipt_city']
)
),
How can I do that?
It is a little more convoluted, but main queries for admin can be modified roughly in a same way as front end. You would need to:
pre_get_posts
is_admin()
is_main_query()