Kiran

Forum Replies Created

Viewing 15 posts - 1,276 through 1,290 (of 6,022 total)
  • Author
    Posts
  • in reply to: Multiple Images imported with FB import #511936

    Kiran
    Moderator
    Post count: 7069

    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

    in reply to: some images disappear #511934

    Kiran
    Moderator
    Post count: 7069

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

    in reply to: Script tags in custom field not working after update #511899

    Kiran
    Moderator
    Post count: 7069

    Hi 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

    in reply to: events add on translation wpml #511895

    Kiran
    Moderator
    Post count: 7069

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

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

    Kiran
    Moderator
    Post count: 7069

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

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

    Kiran
    Moderator
    Post count: 7069
    This reply has been marked as private.
    in reply to: Error on wpi-checkout after form submit. #511614

    Kiran
    Moderator
    Post count: 7069

    Hi avsocial,

    Issue has been fixed, please check and let us know.

    You have added lines at wrong place in wp-config.php

    Kiran

    in reply to: Upgrading from free to paid package #511609

    Kiran
    Moderator
    Post count: 7069
    This reply has been marked as private.
    in reply to: Search was not successful for the requested address. #511608

    Kiran
    Moderator
    Post count: 7069

    Hi 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


    Kiran
    Moderator
    Post count: 7069

    Hi 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

    in reply to: Sorting questions #511603

    Kiran
    Moderator
    Post count: 7069

    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

    in reply to: Sorting questions #511588

    Kiran
    Moderator
    Post count: 7069

    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

    in reply to: Fatal Error #511560

    Kiran
    Moderator
    Post count: 7069

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

    in reply to: No Records Found – when selecting drop-down option #511550

    Kiran
    Moderator
    Post count: 7069

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

    in reply to: Sorting questions #511546

    Kiran
    Moderator
    Post count: 7069

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

    On /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

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