Kiran
Forum Replies Created
-
AuthorPosts
-
Hi Bill,
I am still seeing a blank media template associated with the Social Importer Events But only 1 and that has been inconsistent.
Did you see with a new import or in existing event? Please provide FB event url so i can check more.
Kiran
Hi Jan,
Issue has been fixed. There was conflict with Avada / Smush Pro. I have added following PHP snippet in child theme functions.php to fix this conflict.
/** * Fix image srcset (Avada + Smush Pro). */ function gd_snippet_191007_fix_image_srcset( $sources, $size_array, $image_src, $image_meta, $attachment_id ) { if ( ! empty( $sources ) ) { $_sources = array(); foreach ( $sources as $width => $source ) { if ( is_array( $source ) && ! empty( $source['url'] ) ) { $_sources[ $width ] = $source; } } $sources = $_sources; } return $sources; } add_filter( 'wp_calculate_image_srcset', 'gd_snippet_191007_fix_image_srcset', 11, 5 );Please check and let us know.
Regards,
KiranOctober 7, 2019 at 9:20 am in reply to: Script tags in custom field not working after update #511899Hi Scott,
Try following PHP snippet to prevent strip tags for specific fields.
/** * Skip sanitize specific field values. * * Skipping sanitize values may result in cross-site scripting (XSS) attack. */ function gd_snippet_custom_skip_sanitize_field( $value, $gd_post, $custom_field, $post_id, $post, $update ) { // Fields to skip strip tags. $skip_strip_tags = array(); $skip_strip_tags[] = 'custom_field'; $skip_strip_tags[] = 'custom_text'; $skip_strip_tags[] = 'my_field'; if ( in_array( $custom_field->htmlvar_name, $skip_strip_tags ) ) { $value = $gd_post[ $custom_field->htmlvar_name ]; if ( isset( $custom_field->data_type ) && ( $custom_field->data_type == 'DECIMAL' || $custom_field->data_type == 'INT' ) && $value === '' ) { $value = null; } } return $value; } add_filter( 'geodir_custom_field_value_email', 'gd_snippet_custom_skip_sanitize_field', 11, 6 ); add_filter( 'geodir_custom_field_value_html', 'gd_snippet_custom_skip_sanitize_field', 11, 6 ); add_filter( 'geodir_custom_field_value_phone', 'gd_snippet_custom_skip_sanitize_field', 11, 6 ); add_filter( 'geodir_custom_field_value_text', 'gd_snippet_custom_skip_sanitize_field', 11, 6 ); add_filter( 'geodir_custom_field_value_textarea', 'gd_snippet_custom_skip_sanitize_field', 11, 6 ); add_filter( 'geodir_custom_field_value_url', 'gd_snippet_custom_skip_sanitize_field', 11, 6 );Kiran
Hi Mark,
Make sure you have enabled WPML translation for gd_event CPT & its taxonomies.
To enable translation for gd_event:
– WPML > Settings > Post Types Translation > Tick Translatable for “Events (gd_event)”
– WPML > Settings > Taxonomies Translation > Tick Translatable for “Event Categories (gd_eventcategory)” & “Event Tags (gd_event_tags)”Let us know.
Regards,
KiranHi Rudi,
I have done some debugging and found that when GD search page using the elementor the Astra theme + Elementor Pro plugin shows content from template \themes\astra\template-parts\content-none.php when there is no results found on search page.
With Elementor Pro plugin it shows custom content from content-none.php template.
Let us know.
Thanks,
KiranThis reply has been marked as private.Hi avsocial,
Issue has been fixed, please check and let us know.
You have added lines at wrong place in wp-config.php
Kiran
This reply has been marked as private.October 4, 2019 at 1:31 pm in reply to: Search was not successful for the requested address. #511608Hi There,
Currently it is not possible to use both APIs same time for different services. We implemented maps/geolocation functionality to use one API at one time.
Loading both APIs at a same time may also affect side speed as it requires to load JavaScript libraries from both Google & OSM.Kiran
October 4, 2019 at 1:03 pm in reply to: GD > Listings Block is breaking when adding additional CSS class #511606Hi Carole,
Issue has been fixed and it will be in next release.
You can apply patch on your site: https://github.com/AyeCode/geodirectory/commit/e858cb45ae9d725caa26f60b6f4b870dd6b88f97
Kiran
I checked on my test site and i can’t replicate there, so it could be server specific. You keep that snippet on site where you see similar issue.
Kiran
I noticed that you have put the snippet in the network admin dashboard. Is this correct or should it be put in the site admin dashboard?
I have added it to network dashboard to fix sorting on network wide. Both are correct either you can add it to site wide or network wide.
Kiran
Hi There,
Issue has been fixed.
Record activity for new posts and comments from site is disabled on you site from Settings > BuddyPress > Components > Site Tracking. So it raises some function not found errors. We have fixed this issue from our side and it also updated on your site.
Please check and let us know
Regards,
KiranHi Marita,
Glad to hear that after updating plugins issue is fixed.
Normally WP Auto Updates shows update notification in plugins manager when new update available for the plugin, but don’t know for some reasons it is not showing on your site.
Thanks,
KiranHi Jotomas,
I checked and found some strange behaviour in SQL query results. I tried to execute query directly in phpMyAdmin and on every refresh it changes the listings order among same package id. I checked on my test site but this not happening there.
I have tested following query.
SELECT SQL_CALC_FOUND_ROWS wp_posts.ID, wp_geodir_gd_ruta_tapes_detail.package_id FROM wp_posts LEFT JOIN wp_term_relationships ON (wp_posts.ID = wp_term_relationships.object_id) INNER JOIN wp_geodir_gd_ruta_tapes_detail ON (wp_geodir_gd_ruta_tapes_detail.post_id = wp_posts.ID) JOIN wp_icl_translations wpml_translations ON wp_posts.ID = wpml_translations.element_id AND wpml_translations.element_type = CONCAT('post_', wp_posts.post_type) WHERE 1=1 AND ( wp_term_relationships.term_taxonomy_id IN (688) ) AND wp_posts.post_type = 'gd_ruta_tapes' AND (wp_posts.post_status = 'publish' OR wp_posts.post_status = 'private' OR wp_posts.post_status = 'gd-expired') AND wp_posts.post_type = 'gd_ruta_tapes' GROUP BY wp_posts.ID ORDER BY wp_geodir_gd_ruta_tapes_detail.package_id desc LIMIT 0, 18On /a-taula/ page first 3 listings has package id 35 and rest have 21. So on every refresh it changes order of listings within package_ids.
To fix this i have applied second lever sorting on your site via PHP snippet under Snippet > Listing Sorting.
Now it shows correct listings.
Please check and let us know.
Best Regards,
Kiran -
AuthorPosts