Always check the codex – get_terms( $taxonomies, $args )
– your code should read:
$genre = get_terms( 'genre', array(
'include' => get_post_meta( $post->ID, 'maingenre', true ),
));
Always check the codex – get_terms( $taxonomies, $args )
– your code should read:
$genre = get_terms( 'genre', array(
'include' => get_post_meta( $post->ID, 'maingenre', true ),
));