Hi Everybody,
I have a problem I try to get meta data value to put them in an php array but doesn't work well.
I get my value called slidecolortochange but when I add it into my array the size is just 1 but my array should be 2.
If I add directly my value into the array it works fine, i get the right size.
What Im doing wrong?
if ( get_post_meta($post->ID, 'slidecolortochange', false) ) : ?>
<?php $slidecolortochange = get_post_meta($post->ID, 'slidecolortochange', true);
$slidecolortochange = trim($slidecolortochange);
//echo $slidecolortochange;
$test = array($slidecolortochange);
print_r($test);
$size = count($test);
echo 'size : '.$size;
endif; ?>
Regards