Kiran

Forum Replies Created

Viewing 15 posts - 1,516 through 1,530 (of 6,022 total)
  • Author
    Posts
  • in reply to: Date Display Issue #506215

    Kiran
    Moderator
    Post count: 7069
    This reply has been marked as private.
    in reply to: Date Display Issue #506209

    Kiran
    Moderator
    Post count: 7069
    This reply has been marked as private.
    in reply to: Auto Complete returning results for all options #506206

    Kiran
    Moderator
    Post count: 7069

    Hi Rafaela,

    This has been fixed and it will be in next release.

    Provide us FTP credentials to apply patch if you want.

    Kiran

    in reply to: How can I reset the search filter when changing languages? #506193

    Kiran
    Moderator
    Post count: 7069

    Try this.

    
    
    function gd_snippet_20190903_wpml_language_page_url( $page_url, $page_id, $lang_code ) {
    	global $sitepress, $geodirectory;
    
    	if ( $sitepress->get_default_language() != $lang_code && absint( geodir_location_page_id() ) == $page_id ) {
    		if ( ! empty( $geodirectory->location->country_slug ) && ! empty( $geodirectory->location->region_slug ) ) {
    			$_page_url = explode( "/" . $geodirectory->location->country_slug . "/", $page_url, 2 );
    
    			if ( count( $_page_url ) == 2 ) {
    				$page_url = $_page_url[0] . '/' . $geodirectory->location->country_slug . '/';
    			}
    		}
    	}
    
    	return $page_url;
    }
    add_filter( 'geodir_wpml_language_page_url', 'gd_snippet_20190903_wpml_language_page_url', 20, 3 );

    Kiran

    in reply to: Insert category count #506192

    Kiran
    Moderator
    Post count: 7069
    This reply has been marked as private.
    in reply to: [gd_categories] #506190

    Kiran
    Moderator
    Post count: 7069

    Hi Mark,

    Sorry i missed your last reply.

    Is there already a schedule when this will be implemented?

    Those feature already implemented but it will be next release. Next release may be within 2nd or 3rd week of this month(may vary).

    Is it then possible to display individual CPTs?
    The CPT title and the sorting A-Z helps to make it clearer. But with e.g. 20 CPTs with 20 categories each, very many are displayed. It would be desirable to exclude CPTs. Or you can only display those CPTs that are named in the shortcode.

    If your choose post_type=0 in shortcode or Post Type = Auto in widget then it will lists all the post types. But if you choose specific post type then it will list categories form particular that CPT.
    For now you can put separate gd_categories shortcode/widget for each CPT if you want to show individual CPTs.
    We have already task in our list to include/exclude CPTs it will be in future version.

    Best Regards,
    Kiran

    in reply to: How can I reset the search filter when changing languages? #506189

    Kiran
    Moderator
    Post count: 7069
    This reply has been marked as private.
    in reply to: Link Posts: Places – Not working #506186

    Kiran
    Moderator
    Post count: 7069

    Hi David,

    Please try after clearing your browser cache.

    One of JavaScript from listimia theme conflicts with rendering select2 for CPT linking field.

    In file /wp-content/themes/listimia/js/custom-javascript.js i have changed line

    jQuery('select:not(.geodir-select-tags,.geodir_taxonomy_field .geodir-select)').select2();

    to

    jQuery('select:not(.geodir-select-tags,.geodir_taxonomy_field .geodir-select, .geodir-select-search-post)').select2();

    Let us know.

    Regards,
    Kiran

    in reply to: Yoast meta titles not showing for individual listings. #506183

    Kiran
    Moderator
    Post count: 7069

    Hi Ronny,

    FTP credentials are working fine but FTP account does not have access to public_html(WordPress root) folder, it shows empty directory. Please provide access to WordPress root directory to the FTP account.

    Or apply this patch from your side to fix issue. https://github.com/AyeCode/geodirectory/commit/5e6c8c8550709417ced74a6fef45bd77605080bf#diff-1415a92dcbd5f6c4420dad75d69ace4cR462

    Kiran

    in reply to: GeneratePress Compatibility #506181

    Kiran
    Moderator
    Post count: 7069

    Hi justmark,

    Provide staging site if you have so we can checked there. In some cases 3rd party plugins causing conflicts and creates similar issue.

    Kiran

    in reply to: Listing Category Pages #506180

    Kiran
    Moderator
    Post count: 7069
    This reply has been marked as private.
    in reply to: Yoast Meta not working #506165

    Kiran
    Moderator
    Post count: 7069

    Hi There,

    Please check now and let us know.

    Regards,
    Kiran

    in reply to: Geodirectory uploading many versions of the same image? #506071

    Kiran
    Moderator
    Post count: 7069
    This reply has been marked as private.
    in reply to: Map and autosave issues #506070

    Kiran
    Moderator
    Post count: 7069

    Hi Matt,

    That message is part of GeoDirectory add/edit listing process.

    You can hide that message via CSS if you don’t want to show on add listing page. Or you can you change that message via .po translation.

    Best Regards,
    Kiran

    in reply to: How can I reset the search filter when changing languages? #506065

    Kiran
    Moderator
    Post count: 7069

    Hi,

    your offer is better than WPML’s. This saves the category value and the search word in the search filter. How do I do that?
    I’m wondering if we can redirect a user to a search page in the active country.
    Add following PHP snippet to do that.

    
    
    /**
     * Redirect to default country.
     */
    function gd_snippet_20190902_wpml_url_parameters_gets_passed( $gets_passed, $code, $url ) {
    	global $geodirectory;
    
    	if ( ! empty( $_REQUEST['geodir_search'] ) && ! empty( $gets_passed['geodir_search'] ) ) {
    		$set_country = false;
    		if ( ! empty( $gets_passed['spost_category'] ) ) {
    			$set_country = true;
    			unset( $gets_passed['spost_category'] ); // Skip category
    		}
    		if ( ! empty( $gets_passed['city'] ) ) {
    			$set_country = true;
    			unset( $gets_passed['city'] ); // Skip city
    		}
    		if ( $set_country && ! empty( $geodirectory->location->country_slug ) ) {
    			$gets_passed['country'] = $geodirectory->location->country_slug;
    		}
    	}
    	return $gets_passed;
    }
    add_filter( 'geodir_wpml_url_parameters_gets_passed', 'gd_snippet_20190902_wpml_url_parameters_gets_passed', 20, 3 );

    Kiran

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