This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Reply To: Upcoming events not showing up

#23873
Ernest MarcinkoErnest Marcinko
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;
}