How to hide category
Replace all the call to in_category(‘featured’) with the custom function inCategory(‘featured’), declare it on your functions.php: /** * @param string $category * * @return bool */ function inCategory($category) { global $wpdb, $post; if ( ! $post) { return false; } $query = $wpdb->prepare(“SELECT COUNT(t.term_id) FROM $wpdb->terms AS t INNER JOIN $wpdb->term_taxonomy AS tt ON tt.term_id … Read more