Note : This is not a duplicate question to If value present, order posts by two consecutive custom fields. After filtering a custom filed, I need to order by another custom filed. (The above link explains filtering by two custom fields. But I need to filter by a custom filed and then order by another custom filed.
This is a my current wp query array.
$args = array( 'post_type' => array('post', 'video'), 'meta_key' => 'pp_like_count', 'orderby' => 'meta_value_num', );
I have order by custom filed called
pp_like_count. This works fine.
But I need to display only if
'pp_lang' custom filed equals to 'english'. How to modify this to add it?
pp_like_count also should be there.)