• Resolved rrvoigt

    (@rrvoigt)


    Hi,
    Is there a way to disable the ‘description’ text area from within the search?
    We notice that this sometimes impacts the search results negatively by displaying certain listings within result because they have a part of the sentence.

    P.s: Maybe this can also be a slide option in the settings > search section.

    Regards,

Viewing 1 replies (of 1 total)
  • Plugin Support Rafiz Sejim

    (@rafizsejim)

    Greetings,

    Thank you for reaching us.

    Please add the following code to your theme’s functions.php

    add_filter( 'atbdp_listing_search_query_argument', function( $args ){
     
    	if( isset( $args['s'] ) ){
    		unset( $args['s'] );
    	}
     
    	if ( !empty( $_GET['q'] ) ) {
    		$args['title'] = sanitize_text_field($_GET['q']);
    	}
     
    	return $args;
    });

    This will prevent matching with the description.

    Regards,

Viewing 1 replies (of 1 total)
  • The topic ‘How to disable search within listing description text area?’ is closed to new replies.