Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Upcoming events not showing up › Reply To: Upcoming events not showing up
August 30, 2019 at 10:04 am
#23873
Keymaster
Hi,
I’m afraid that is only possible via additional custom coding, but I am not sure if I can do that, as there was already lots of custom coding made, and it will very likely conflict one with the other.
The duplicate name filter is also a custom code, that you requested earlier, by default the plugin does not do that. You can remove that custom code, it is on the lines 228-243 in your child theme functions.php file:
add_filter('asp_results', 'asp_filter_duplicate_titles');
function asp_filter_duplicate_titles($results) {
$titles_arr = array();
foreach($results as $k=>&$r){
if ( isset($r->post_type) ) {
if ( $r->title != '' ) {
if ( in_array($r->title, $titles_arr) ) {
unset($results[$k]);
} else {
$titles_arr[] = $r->title;
}
}
}
}
return $results;
}