public function post_type() { $post_type = (array) get_query_var('post_type'); return (string) reset($post_type); }