function ubik_recordpress_meta($meta) { global $post; if (has_term('', 'artists')) { $meta .= ubik_terms_popular_list($post->ID, 'artists', 'Artists: ', ', ', '. '); } if (has_term('', 'styles')) { $meta .= ubik_terms_popular_list($post->ID, 'styles', 'Styles: ', ', ', '. '); } return $meta; }
function ubik_meta_terms($taxonomy = '', $before = '', $sep = ', ', $after = '', $threshold = '') { // Exit early if we're not in the loop or no taxonomy was passed if (!in_the_loop() || empty($taxonomy)) { return; } // Switch: process popular terms if the threshold is set otherwise default back to WordPress core functionality if (!empty($threshold) && is_int($threshold)) { $terms = ubik_terms_popular_list(get_the_ID(), $taxonomy, $before, $sep, $after, $threshold); } else { $terms = get_the_term_list(get_the_ID(), $taxonomy, $before, $sep, $after); } return apply_filters('ubik_meta_terms', $terms); }