I was able to display the single value of my custom meta field with comma separated using this code:
$ct = get_post_meta($post->ID, 'ct', true); echo $ct;
And here's an output:
USA, UK, China, Hong Kong
I needed the output to be:
<span>USA</span>, <span>UK</span>, <span>China</span>, <span>Hong Kong</span>
Is it possible? If so, a sample code would really help a lot or any reference you might know.