Kiran

Forum Replies Created

Viewing 15 posts - 766 through 780 (of 6,022 total)
  • Author
    Posts
  • in reply to: Merge locations and keep google? #524235

    Kiran
    Moderator
    Post count: 7069

    Hi Dave,

    Try following PHP snippet to set region during add listing for specific cities.

    
    
    /**
     * Set region for specific city.
     */
    function gd_snippet_200106_set_region() {
    ?>
    if ( rr == 'GB' ) {
    	if ( getCity ) {
    		/* Use lower case city name to compare */
    		if ( getCity.toLowerCase() == 'kingston upon hull' ) {
    			getState = 'East Riding of Yorkshire';
    		} else if ( getCity.toLowerCase() == 'liverpool' ) {
    			getState = 'Merseyside';
    		}
    	}
    
    	if ( getState ) {
    		/* Use lower case state name to compare */
    		if ( getState.toLowerCase() == 'north east lincolnshire' ) {
    			getState = 'North Lincolnshire';
    		}
    	}
    }
    <?php
    }
    add_action( 'geodir_add_listing_geocode_js_vars', 'gd_snippet_200106_set_region', 11 );

    Regards,
    Kiran

    in reply to: Link to Legal Documents #524232

    Kiran
    Moderator
    Post count: 7069

    I have done following.
    – From Professional Profiles > Settings > Custom Fields > Package
    – Re-entered html in “front end description”
    – Save

    Please check and let us know.

    Kiran

    in reply to: Neighbourhoods auto-creation #524228

    Kiran
    Moderator
    Post count: 7069

    Hi Hui,

    With searching 486038 it returns latitude,longitude 1.3360557,103.9639813. But when it makes request with 1.3360557,103.9639813 to get marker position it positioned in 486072.

    Try to disable option GeoDirectory > Settings > Locations > General > “Disable set address on map from changing address fields”

    Regards,
    Kiran

    in reply to: Different packages frontend/backend #524225

    Kiran
    Moderator
    Post count: 7069

    Hi Alfonso,

    I just did the first test (with real paypal) and it is even worse than before. Now neither in the frontend nor in the backend appears as premium after making the payment and subscribing

    Please do a upgrade process with a live payment. I have enabled debugging to check where it going wrong.

    the backend is in English since you connected and I can’t change it to Spanish.

    I have changed it to do testing. I have changed it to as it was from /wp-admin/profile.php > Language > Site Default.

    Regards,
    Kiran

    in reply to: Wrong GD Archive header #524207

    Kiran
    Moderator
    Post count: 7069

    Hi Alexander,

    I have checked and found that it shows “Все Телефон” for RU language but it show “GD Archive” title for UK language.

    Please provide FTP credentials to look into more.

    Regards,
    Kiran

    in reply to: Multirating not converted during V2 migration #524203

    Kiran
    Moderator
    Post count: 7069

    Hi Dirk,

    Please provide us credentials of the site running with GDv1, so i can check how multiratings are working there.

    Kiran

    in reply to: Merge locations and keep google? #524197

    Kiran
    Moderator
    Post count: 7069

    Hi Dave,

    Do you want to apply region “East Riding of Yorkshire” to all listing within address of “Kingston upon Hull” city?

    Regards,
    Kiran

    in reply to: Google Search Console Errors #524196

    Kiran
    Moderator
    Post count: 7069

    Hello There,

    There are two rich snippet on the event detail page. One from GeoDirectory plugin and another from Rank Math plugin.

    Use following PHP snippet to disable rich snippet from Rank Math plugin.

    
    
    /**
     * Disable Rank Math Schema on detail page.
     */
    function gd_snippet_200106_template_redirect() {
    	if ( ! geodir_is_page( 'detail' ) ) {
    		return;
    	}
    
    	// Remove Rank Math Rich Snippet.
    	add_filter( 'rank_math/json_ld', 'gd_snippet_200106_rank_math_json_ld', 20, 2 );
    
    	// Remove GeoDirectory Rich Snippet.
    	//remove_action( 'wp_head', array( 'GeoDir_Post_Data', 'schema' ), 10 );
    
    	add_filter( 'geodir_details_schema', 'gd_snippet_200106_geodir_details_schema', 20, 2 );
    }
    add_action( 'template_redirect', 'gd_snippet_200106_template_redirect' );
    
    function gd_snippet_200106_rank_math_json_ld( $data, $class ) {
    	if ( ! empty( $data ) && is_array( $data ) && ! empty( $data['richSnippet'] ) ) {
    		$data = array();
    	}
    	return $data;
    }
    
    function gd_snippet_200106_geodir_details_schema( $schema, $post ) {
    	if ( ! GeoDir_Post_types::supports( $post->post_type, 'events' ) ) {
    		return $schema;
    	}
    
    	if ( empty( $schema['offers'] ) ) {
    		// offers
    		$offers = array ( '@type' => 'Offer', 'name' => __( 'General Admission' ), 'category' => 'primary' );
    
    		$meta_keys = array( 'snippet_event_price' => 'price', 'snippet_event_currency' => 'priceCurrency', 'snippet_event_ticketurl' => 'url', 'snippet_event_inventory' => 'inventoryLevel', 'snippet_event_availability' => 'availability', 'snippet_event_availability_starts' => 'validFrom' );
    		foreach ( $meta_keys as $meta_key => $schema_key ) {
    			$offers[ $schema_key ] = RankMath\Helper::get_post_meta( $meta_key, $post->ID );
    		}
    
    		if ( ! empty( $offers['validFrom'] ) ) {
    			$offers['validFrom'] = str_replace( ' ', 'T', RankMath\Helper::convert_date( $offers['validFrom'] ) );
    		}
    
    		if ( empty( $offers['price'] ) ) {
    			$offers['price'] = 0;
    		}
    
    		$schema['offers'] = $offers;
    	}
    
    	// performer
    	if ( empty( $schema['performer'] ) && ( $_performer = RankMath\Helper::get_post_meta( 'snippet_event_performer' ) ) ) {
    		$performer = array(
    			'@type' => RankMath\Helper::get_post_meta( 'snippet_event_performer_type' ) ? RankMath\Helper::get_post_meta( 'snippet_event_performer_type' ) : 'Person',
    			'name'  => $_performer,
    		);
    		if ( $performer_url = RankMath\Helper::get_post_meta( 'snippet_event_performer_url' ) ) {
    			$performer['sameAs'] = $performer_url;
    		}
    
    		$schema['performer'] = $performer;
    	}
    
    	return $schema;
    }

    Regards,
    Kiran

    in reply to: map bubble issue #523855

    Kiran
    Moderator
    Post count: 7069

    Thanks for letting us know.

    Kiran

    in reply to: Location slug question #523847

    Kiran
    Moderator
    Post count: 7069

    Hi Olga,

    Do you want to change location slug? Please clarify with example what you want so can help you.

    Kiran

    in reply to: Adding and changing business hours… #523844

    Kiran
    Moderator
    Post count: 7069

    Hi Rodney,

    To update listing via rest API it should work with route you have used for 36559.

    Please try following route.

    /wp-json/geodir/v2/business/36559?id=36559&business_hours=["Mo 10:00-17:00","Tu 10:00-17:00","We 10:00-17:00","Th 10:00-17:00","Fr 10:00-17:00","Sa 10:00-17:00","Su 10:00-17:00"]

    Kiran


    Kiran
    Moderator
    Post count: 7069

    Hi Hui,

    Please try now after clearing your browser cache.

    There was CSS conflicts with Jupiter theme css. I have added following CSS in Customize > Additional CSS to fix this.

    
    
    .geodir_form_row .gd-bh-items table.fixed {
    	position: inherit;
    }

    I have also added this our plugin for theme compatibility fix.

    Kiran

    in reply to: Neighbourhoods auto-creation #523818

    Kiran
    Moderator
    Post count: 7069
    This reply has been marked as private.
    in reply to: Error When Trying to Add A Price Package #523798

    Kiran
    Moderator
    Post count: 7069

    Hi Frank,

    I have deleted gd_school post type after my testing done. I have added gd_school post type from GeoDirectory > Settings > Post Types > Add New.

    Let us know.

    Kiran

    in reply to: Sort Order not working #523787

    Kiran
    Moderator
    Post count: 7069

    Thanks for letting us know.

    Happy Christmas & Happy New Year!

    Kiran

Viewing 15 posts - 766 through 780 (of 6,022 total)
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount