Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter yjules

    (@yjules)

    Hello there,

    Thank you for your reply. I’ve tried it, and I still get the same “0” displayed by default if the field is empty.
    I think it is because displaying this 0 is embeded in the functions of the theme, but it is in the same field as the formatting for the numbers.

    This is what I have in my functions-theme.php file:

    /*-----------------------------------------------------------------------------------*/
    
    /* Listing Price */
    
    /*-----------------------------------------------------------------------------------*/
    
    function listing_price() {
    	global $post;
    	$price_meta = get_post_meta(get_the_ID(), '_ct_price', true);
    	$price_meta= preg_replace('/[\$,]/', '', $price_meta);
    	echo  number_format($price_meta, 0, ',', '.');
    }

    Thread Starter yjules

    (@yjules)

    Thank you, I’ve used a different option (limiting the number of characters displayed, and it works fine).

    Thread Starter yjules

    (@yjules)

    I managed to fix my problem but simply installing the English version of WordPress. For some reason, there was an issue with the language plugin.

    Thanks for your help everyone.

    Thread Starter yjules

    (@yjules)

    I don’t know what the problem can be with the plugin, as I am just starting setting up. Maybe the French package, it’s the only thing I can think of, I’ll check it.
    for the second questions, to make it simple, I want 2 blogs, 2 differents languages, but only one database. Is that possible?

    Thanks for the help though.

Viewing 4 replies - 1 through 4 (of 4 total)