0 , 'has_rewrite' => TRUE ) ); // register public taxonomies as facets foreach( (array) get_taxonomies( array( 'public' => true )) as $taxonomy ) { $taxonomy = get_taxonomy( $taxonomy ); scrib_register_facet( ( empty( $taxonomy->label ) ? $taxonomy->name : sanitize_title_with_dashes( $taxonomy->label )), 'Facet_Taxonomy' , array( 'taxonomy' => $taxonomy->name , 'query_var' => $taxonomy->query_var , 'has_rewrite' => is_array( $taxonomy->rewrite ), 'priority' => 5, ) ); } // register facets from the posts table scrib_register_facet( 'post_author' , 'Facet_Post_Author' , array( 'priority' => 3 , 'has_rewrite' => TRUE )); } add_action( 'scrib_register_facets' , 'scrib_register_default_facets' );