Suppose i have a function
function mytable(){
$count_value = get_kudos_count( $post_id ); }
How to send $count_value dynamically to the custom field present in WordPress post ?
Let us assume the custom field name (key) is custom_count
You can use update_post_meta:
update_post_meta( $post_id, 'custom_count', $count_value );