Feature area background images not displayed after importing CSV

This topic contains 19 replies, has 4 voices, and was last updated by  Alex Rollin 5 years, 5 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #528541

    Dinis Quelhas
    Expired Member
    Post count: 14

    Hi,

    Well, it would be great if that limit could be larger, is that something you can change?

    That is the way that zip codes are presented in Portugal – the number followed by the location.

    Thanks.

    #528599

    Alex Rollin
    Moderator
    Post count: 27815

    I see I see.
    Well, let me point this out to the developers so they can look into the best way to handle that

    https://en.wikipedia.org/wiki/Postal_codes_in_Portugal

    #528655

    Kiran
    Moderator
    Post count: 7069

    Hi Dinis,

    We have increased zip code length limit to 50 characters. It will be in next release.

    To fix it on your site, do following things.

    1) Add following PHP snippet
    2) Run GD Tool from GeoDirectory > Status > Tools > “Clear version numbers” > Run

    
    
    /**
     * Increase zip(postcode) field characters limit.
     */
    function gd_snippet_200204_increase_zip_char_limit( $columns, $cpt, $post_type ) {
    	if ( isset( $columns['zip'] ) ) {
    		$columns['zip'] = "zip VARCHAR(50) NULL";
    	}
    
    	return $columns;
    }
    add_filter( 'geodir_db_cpt_default_columns', 'gd_snippet_200204_increase_zip_char_limit', 20, 3 );

    This will increase field limit to 50 characters.

    Regards,
    Kiran

    #528777

    Dinis Quelhas
    Expired Member
    Post count: 14

    Hi Kiran – thank you. What PHP page (i.e. index.php, wp-blog-header.php, wp-config.php, etc.) should I add the PHP code snippet to?
    Many thanks,
    Dinis

    #528818

    Alex Rollin
    Moderator
    Post count: 27815

    You should use the Code Snippets plugin, with the option to Run Once
    https://wordpress.org/plugins/code-snippets/

Viewing 5 posts - 16 through 20 (of 20 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount