Kiran
Forum Replies Created
-
AuthorPosts
-
October 2, 2019 at 10:31 am in reply to: Search was not successful for the requested address. #511222
Hi,
At one time it loads only one API (either Google or OSM) for map & geolocation functionality.
You can load Google API on search page but can’t load both APIs on same page.
Kiran
Hi,
It looks like session issue there.
Please try solution provided here: https://wpgeodirectory.com/support/topic/prices-and-payment/#post-468372
Let us know how it goes.
Regards,
KiranHi Emlyn,
At the moment there is no way to set binary search for text/number fields. But you can you following PHP snippet to meet your requirements.
/** * Use number field as a binary search. */ function gd_snippet_191002_search_filter_field_html_output_text( $html, $field, $post_type ) { $field_name = 'vacancies'; // Field name if ( ! empty( $field->htmlvar_name ) && $field->htmlvar_name == $field_name ) { $value = isset( $_REQUEST[ 's' . $field_name ] ) ? sanitize_text_field( $_REQUEST[ 's' . $field_name ] ) : ''; ob_start(); ?> <div class="geodir-filter-cat gd-type-single gd-field-<?php echo $field_name; ?>"> <span><?php _e( $field->frontend_title, 'geodirectory' ); ?></span> <ul> <li> <select name="s<?php echo $field_name; ?>" class="cat_select" id=""> <option value=""><?php _e( 'Select option', 'geodirectory' ); ?></option> <option value="1-Less" <?php selected( '1-Less', $value ); ?>><?php _e( 'No Vacancy', 'geodirectory' ); ?></option> <option value="1-More" <?php selected( '1-More', $value ); ?>><?php _e( 'With Vacancies', 'geodirectory' ); ?></option> </select> </li> </ul> </div> <?php $html = ob_get_clean(); } return $html; } add_filter( 'geodir_search_filter_field_html_output_text', 'gd_snippet_191002_search_filter_field_html_output_text', 20, 3 ); function gd_snippet_191002_search_filter_searched_params( $params, $post_type ) { $field_name = 'vacancies'; // Field name if ( isset( $_REQUEST[ 's' . $field_name ] ) && $_REQUEST[ 's' . $field_name ] !== '' && ! empty( $params ) ) { $_params = array(); foreach ( $params as $key => $param ) { if ( strpos( $param, 'data-name="s' . $field_name . '"' ) !== false ) { $title = $_REQUEST[ 's' . $field_name ] == '1-More' ? __( 'With Vacancies', 'geodirectory' ) : __( 'No Vacancy', 'geodirectory' ); $param = '<label class="gd-adv-search-label gd-adv-search-range gd-adv-search-' . $field_name . '" data-name="s' . $field_name . '"><i class="fas fa-times" aria-hidden="true"></i> ' . $title . '</label>'; } $_params[ $key ] = $param; } $params = $_params; } return $params; } add_filter( 'geodir_search_filter_searched_params', 'gd_snippet_191002_search_filter_searched_params', 20, 3 );Use $field_name = ‘YOUR FIELD NAME’ in above snippet.
Best Regards,
KiranHi Silks,
I have checked on my test site with add/delete listing but could not see issue there. It updates categories count on add/delete listings.
On your site it could be related to cache. Just let us know if you see issue again.
Regards,
KiranThis reply has been marked as private.Hi Bill,
Issue has been fixed and patch applied to your site.
Please check and let us know.
Regards,
KiranHi Press,
This has been implemented and it will be in next release.
Example:
tick_terms=”20,30″ to show categories ticked
OR
tick_terms=”-20,-30″ to show categories untickedRegards,
KiranThis reply has been marked as private.Hi Peter,
You have all locations in Finedon city where as Settings > Default location set to “Wellingborough”. I have set “Finedon” in default location now map is working fine.
Also there is an JavaScript error on add listing page.
Google Maps JavaScript API error: ApiNotActivatedMapError https://developers.google.com/maps/documentation/javascript/error-messages#api-not-activated-map-errorIt looks like you have not enabled Map JavaScript API Service for Google API Key.
Let us know.
Regards,
KiranHello There,
You have ticked option “Use post map zoom and type?” in GD Map widget, so on detail page it applies the zoom level saved with post listing.
Unpick that option or set desired zoom level on map and save listing.Regards,
KiranHi jotomas,
In claim form it shows packages in the list which are selected in package setting.
Suppose there is one PLACE listing say LISTING A which running with PACKAGE A. Now you are going to claim this listing so in claim popup it will show packages selected at PLACES CPT > Settings > Packages > Edit PACKAGE A > Claim Packages.I have selected assigned some packages for claim listing under packages settings.
Please check and let us know.
Thanks,
KiranThis reply has been marked as private.September 30, 2019 at 12:14 pm in reply to: Imported languages via csv are not automatically linked to original language. #510878This reply has been marked as private.This reply has been marked as private.This reply has been marked as private. -
AuthorPosts