Disable "show nearest" filter for related listings

Per my conversion with Ihor via email, can I be provided with the code snippet to disable the “show nearest” filter for related listings, so that the query will be excluded? Thanks.

Hi,

Please try this PHP snippet:

remove_action( 'hivepress/v1/models/listing/relate', [ hivepress()->geolocation, 'set_related_query' ], 10, 2 );

Thanks. I’m still seeing the query slow down the load time of the site a good amount. There are also 77 duplicate queries. Can this be cleaned up and sped up?

Hi,

Please send temporary WP access to support@hivepress.io with details for reproducing this issue and we’ll check it. You can create a temporary access link using this plugin Temporary Login Without Password – WordPress plugin | WordPress.org

@andrii Following up as I emailed support@hivepress.io five days ago. Thanks.