PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

thousands separator in a cell

The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page please
If you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.

Hey, I found your plugin today and have almost set it up at the moment

I cannot solve one problem

I have a custom numeric field called"check"

this field is created with a plugin ACF

i put this code in a file functions.php

add_filter('acf/format_value/name=check', 'fix_number');
function fix_number($check) {
$check = number_format($check, 0, ',', ' ');
return $check;
}

and this works for a regular post template - there I get the format I need (1 000 000)
But in your table, the number format does not change and I still see 1000000

can you help me solve this problem?

thanks

Hello

In this case, you should change the way this field is displayed.

read this please - https://posts-table.com/how-reload-meta-display-in-the-cell/

OK thanks
this code works

 

add_action('tableon_profile_extend', function($profile, $action_name) {

if ($action_name === 'tableon_default_tables') {

if (isset($profile['check'])) {
$profile['check']['action'] = function($post_id) {
return number_format(get_post_meta($post_id, 'check', true), 0, ',',' ');
};
}

}

return $profile;
}, 10, 2);

 

there is one more question

i have a field type Relationship https://www.advancedcustomfields.com/resources/relationship/

if I add it to the table, then I see only the record ID (for example 4055)
how to make it so that instead of id I get a link to this record in the table (for example, as a title field)
thanks

 

Hello

Read  this  please - https://posts-table.com/how-to-add-custom-column-to-the-tables/