有人知道为什么不能用这段代码显示 post_meta "ojos" 吗?wp_get_post_terms 可以正常工作,但我想要 post_meta。我想是为了 ($terms) 也许......真的谢谢!
<?php $terms = wp_get_post_meta($post->ID,'ojos');
$count = count($terms);
if ( $count > 0 ){
echo "<span style='font-size:12px !important;color:#999 !important;font:Arial !important;font-weight:normal !important;'>Color de Ojos: </span><span>";
foreach ( $terms as $term ) {
echo $term->name . "<comma>, </comma>";
}
echo "</span>";} ?>