I forgot the filter. Here it is again;
function kendyman_seventeen_options( $options )
{
echo "here5";
exit();
$args = array(
'orderby' => 'name', /* ou id ou count .. */
'order' => 'ASC', /* ou DESC */
'include' => array( 1, 5 ) /* list of category ids to include */
);
$cats = get_terms( 'category', $args );
foreach( $cats as $term ){
$options['cat-'.$term->term_id] = $term->name;
}
return $options;
}
add_filter('bp_core_search_site', 'kendyman_seventeen_search_by_cat_url', 10, 2);