Hi @fan297
Thank you for waiting on this.
Please use the following code in the functions.php file of the child theme file. This will allow you to search with the listing ID as well.
add_filter( 'atbdp_listing_search_query_argument', function( $args ) {
if (isset($_GET['q']) && !empty($_GET['q'])) :
$post_per_page = $args['posts_per_page'];
$args['posts_per_page'] = -1;
$args1 = $args;
$args1['fields'] = 'ids';
$post_args1 = new WP_Query($args1);
$posts1 = !empty($post_args1->have_posts()) ? $post_args1->posts : [];
$args2 = $args;
$args2['p'] = (int)$args2['s'];
unset( $args2['s'] );
$args2['fields'] = 'ids';
if( $args2['p'] ){
$post_args2 = new WP_Query($args2);
$posts2 = !empty($post_args2->have_posts()) ? $post_args2->posts : [];
}else{
$posts2 = [];
}
$all_ids = array_merge($posts2, $posts1);
if (!empty($all_ids)) {
$args['post__in'] = $all_ids;
unset( $args['s'] );
} else {
$args['s'] = $_GET['q'];
}
$args['posts_per_page'] = $post_per_page;
endif;
return $args;
} );
Please let me know if you need further assistance.
Kind Regards