Get current Category Name on a page which filters posts by Category and custom meta_key
问题 I'm successfully filtering all my WordPress posts (in a custom page template) by Likes (count) with a Custom Plugin (and meta_key) which also let me filter the most liked posts in a specific category with the following if (isset($_GET['category'])) { $args = array( 'meta_key' => '_recoed', 'meta_compare' => '>', 'meta_value' => '0', 'orderby' => 'meta_value_num', 'order' => 'DESC', 'category_name' => sanitize_text_field($_GET['category']), 'paged' => $paged ); } query_posts($args); get