Kiran
Forum Replies Created
-
AuthorPosts
-
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,
KiranI have done following.
– From Professional Profiles > Settings > Custom Fields > Package
– Re-entered html in “front end description”
– SavePlease check and let us know.
Kiran
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,
KiranHi 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,
KiranHi 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,
KiranHi Dirk,
Please provide us credentials of the site running with GDv1, so i can check how multiratings are working there.
Kiran
Hi Dave,
Do you want to apply region “East Riding of Yorkshire” to all listing within address of “Kingston upon Hull” city?
Regards,
KiranHello 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,
KiranThanks for letting us know.
Kiran
Hi Olga,
Do you want to change location slug? Please clarify with example what you want so can help you.
Kiran
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
January 3, 2020 at 10:58 am in reply to: Category field is locked but appears differently on franchise #523827Hi 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
This reply has been marked as private.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
Thanks for letting us know.
Happy Christmas & Happy New Year!
Kiran
-
AuthorPosts