DICEGSA

Inicio » Mi Cuenta
add_filter( 'relevanssi_hits_filter', 'search_result_types' ); function search_result_types( $hits ) { global $hns_search_result_type_counts; $types = array(); if ( ! empty( $hits ) ) { foreach ( $hits[0] as $hit ) { $types[ $hit->post_type ]++; } } $hns_search_result_type_counts = $types; return $hits; } ?>