Small bug fix release this time.
- Fixed a problem causing “Attempt to modify property of non-object” errors.
- Fixed a warning message.
Small bug fix release this time.
Not logged in. Log in to see your license details.
…post. You give the location with the relevanssi_proximity_coordinates filter hook, which filters the coordinates and gets the post ID as the parameter. Often the coordinates are in a custom field. The necessary function will look something like this: add_filter( ‘relevanssi_proximity_coordinates’, function( $coordinates, $post_id ) { return get_post_meta( $post_id, ‘coordinates’, true……on the relevanssi_proximity_comparison filter hook. That function should return the coordinates as a string. If you don’t use the coordinates query variable, you need this snippet to remove a PHP warning: add_action( ‘init’, function() { remove_filter( ‘relevanssi_search_params’, ‘relevanssi_pick_up_coordinates’ ); } ); Then you need to provide the coordinates for each……a fixed spot or something the search user provides. Relevanssi looks for this in the coordinates query variable and it should have the coordinates in the “latitude, longitude” format. If this is not possible or easy, you can also provide the coordinates with a filter function. Add a filter function…