Been trying to google an answer but cant seem to find anything, I have the following...
<?php
$values = array_map('trim', get_post_custom_values($key));
$value = implode($values,', ');
echo "<div class='top-meta-vals'>".apply_filters(" $value
", $value)."</div>";
?>
I want to wrap each and every $value
in a span tag but im unsure how...
I tried,
<?php
$value = "<span>".implode($values,', ')."</span>";
?>
with no luck, can anybody give me an idea of where im going wrong?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…