Forums
(@avgeneral)
14 years, 10 months ago
instead of using get_terms() which retrieves ALL terms, use this instead:
$theme = get_the_terms($post->ID, ‘theme’);
$theme is of type Array()
in order to get the value, use this:
echo $theme[0]->name;