if('gmedia_album' == $post->post_type){ global $gmDB; $gmedia_term_id = get_post_meta($post->ID, '_gmedia_term_ID', true); $gmedia_term = $gmDB->get_term($gmedia_term_id); echo apply_filters('the_content', $gmedia_term->description); /* Album Description */ $gmedia_term_meta = $gmDB->get_metadata('gmedia_term', $gmedia_term_id); foreach($gmedia_term_meta as $meta_key => $meta_value){ if($meta_key[0] == '_'){ continue; } /* Skip protected meta */ echo "{$meta_key}: {$meta_value[0]}" /* $meta_key - is custom field name; $meta_value - is array of values for the custom field name. */ } }