I array text from custom field "black, grey, white" with this code:
<?php global $wp_query; $postid = $wp_query->post->ID; echo get_post_meta($postid, 'colors', true); ?>
I want show me like this:
black</br>
grey</br>
white
It's possible with PHP? Many thanks
str_replace(",", ",<br>", $string);
<br />
, not</br>
.