Kiran

Forum Replies Created

Viewing 15 posts - 1,306 through 1,320 (of 6,022 total)
  • Author
    Posts
  • in reply to: Search was not successful for the requested address. #511222

    Kiran
    Moderator
    Post count: 7069

    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

    in reply to: Error on wpi-checkout after form submit. #511205

    Kiran
    Moderator
    Post count: 7069

    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,
    Kiran

    in reply to: Binary search on nuber custom fields #511204

    Kiran
    Moderator
    Post count: 7069

    Hi 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,
    Kiran

    in reply to: Category count incorrect #511196

    Kiran
    Moderator
    Post count: 7069

    Hi 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,
    Kiran

    in reply to: Elementor Search Page no results error #511193

    Kiran
    Moderator
    Post count: 7069
    This reply has been marked as private.
    in reply to: Multiple Images imported with FB import #511189

    Kiran
    Moderator
    Post count: 7069

    Hi Bill,

    Issue has been fixed and patch applied to your site.

    Please check and let us know.

    Regards,
    Kiran

    in reply to: Untick categories in CPT #511182

    Kiran
    Moderator
    Post count: 7069

    Hi 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 unticked

    Regards,
    Kiran

    in reply to: transfering places to a new site #511072

    Kiran
    Moderator
    Post count: 7069
    This reply has been marked as private.
    in reply to: transfering places to a new site #511061

    Kiran
    Moderator
    Post count: 7069

    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-error

    It looks like you have not enabled Map JavaScript API Service for Google API Key.

    Let us know.

    Regards,
    Kiran

    in reply to: Map Widget Zoom Level Controls? #511058

    Kiran
    Moderator
    Post count: 7069

    Hello 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,
    Kiran

    in reply to: Can not create packages #511021

    Kiran
    Moderator
    Post count: 7069

    Hi 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,
    Kiran

    in reply to: transfering places to a new site #510887

    Kiran
    Moderator
    Post count: 7069
    This reply has been marked as private.

    Kiran
    Moderator
    Post count: 7069
    This reply has been marked as private.
    in reply to: transfering places to a new site #510876

    Kiran
    Moderator
    Post count: 7069
    This reply has been marked as private.
    in reply to: Upgrading from free to paid package #510875

    Kiran
    Moderator
    Post count: 7069
    This reply has been marked as private.
Viewing 15 posts - 1,306 through 1,320 (of 6,022 total)
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount