Kiran
Forum Replies Created
-
AuthorPosts
-
This reply has been marked as private.
Hello,
Use following JavaScript snippet.
jQuery(function($){ if ( $('.geodir_form_row select#gd_placecategory').length) { $('.geodir_form_row select#gd_placecategory option[value=""]').remove(); $('.geodir_form_row select#gd_placecategory').val(45).trigger("chosen:updated"); } });Kiran
October 3, 2018 at 6:50 am in reply to: Show in what location: Above tabs but below image slider #448597Hello Scott,
Use following code snippet to add custom field location as you requested.
// Add a new output location to the list of places a custom field can be output. function _gd_snippet_custom_field_locations( $show_in_locations, $field_info, $field_type ) { $show_in_locations[ '[above_image_slider]' ] = __( "Above Image Slider", 'geodirectory' ); // Above image slider $show_in_locations[ '[below_image_slider]' ] = __( "Below Image Slider", 'geodirectory' ); // Below image slider return $show_in_locations; } add_filter( 'geodir_show_in_locations', '_gd_snippet_custom_field_locations', 10, 3 ); // Outputs fields above detail page image slider. function _gd_snippet_location_above_image_slider() { echo geodir_show_listing_info( 'above_image_slider' ); } add_action( 'geodir_details_main_content', '_gd_snippet_location_above_image_slider', 29 ); // Outputs fields below detail page image slider. function _gd_snippet_location_below_image_slider() { echo geodir_show_listing_info( 'below_image_slider' ); } add_action( 'geodir_details_main_content', '_gd_snippet_location_below_image_slider', 31 );Add field to positions “Above Image Slider” & “Below Image Slider” from field settings.
Kiran
This reply has been marked as private.This reply has been marked as private.Hi Sam,
After doing some debugging i found following error in error log:
WordPress database error Row size too large (> 8126). Changing some columns to TEXT or BLOB or using ROW_FORMAT=DYNAMIC or ROW_FORMAT=COMPRESSED may help. In current row format, BLOB prefix of 768 bytes is stored inline.
This happens when submitting & inserting large size of data.
Contact your server admin about this error. Here solution that may help you: https://stackoverflow.com/questions/22637733/mysql-error-code-1118-row-size-too-large-8126-changing-some-columns-to-te/#answer-25373052
Let us know.
Thanks,
KiranHello Waheed,
It seems PHP session support not enabled on your site.
For temporary fix PHP session add following lines in wp-config.php file.
/* PHP SESSION TEMPORARY FIX */ if ( !defined( 'GEODIR_USE_PHP_SESSIONS' ) ) { define( 'GEODIR_USE_PHP_SESSIONS', false ); } if ( !defined( 'WPINV_USE_PHP_SESSIONS' ) ) { define( 'WPINV_USE_PHP_SESSIONS', false ); } /* PHP SESSION TEMPORARY FIX */Please provide us FTP credentials if this solution not working.
Kiran
This reply has been marked as private.This reply has been marked as private.This reply has been marked as private.Hello,
I have added compatibility in your child theme functions.php.
Please check and let us know.
Kiran
October 1, 2018 at 12:01 pm in reply to: Several problems: Google Map API, category pages, new city #448342Hello,
After doing some debugging found that your site using too older version o Location Manager v1.4.3.
Please update it to recent v1.5.63Kiran
October 1, 2018 at 10:03 am in reply to: Several problems: Google Map API, category pages, new city #448324Hello There,
Please check at server error log, is there any error there related to GeoDirectory plugin?
Or provide us FTP credentials, so we can take a look.Kiran
Hello Doug,
If directory is multi country then country slug should be in urls to identify regions/cities belongs to which country.
If you want the country slug in listing detail page then you can enable it from GeoDirectory > Permalinks > Add location in urls > Tick country/region/city option. > Save Changes
Let us know.
Kiran
Hello Holger,
I have applied patch on your site.
Please check and let us know.
Thanks,
Kiran -
AuthorPosts