Singular custom taxonomy label

get_the_terms() returns an array of the terms, and is used by get_the_term_list() to build the links. You can query it and count the number of returned terms. Since the result is cached, it won’t query the database again. $artists = get_the_terms( $post->ID, ‘artists’ ); if ( $artists ) { $artistsLabel = ( 1 == count( … Read more

custom taxonomies on pages

If you want to display a list of all terms in a taxonomy, you can call wp_list_categories() and pass the taxonomy argument to get anything other than the categories: wp_list_categories( array( ‘taxonomy’ => ‘your-taxonomy’ ) ); If you want to use a shortcode for this, so you can use it in your post content, use … Read more

Drop-down filter doesn’t retrieve custom taxonomies

is it because you aren’t returning a value to the parse_query filter? or otherwise passing it by reference. function parse_query(&$query) { //added the reference & global $pagenow; $qv = &$query->query_vars; if ($pagenow==’edit.php’ && isset($qv[‘taxonomy’]) && $qv[‘taxonomy’]==’page_sections’ && isset($qv[‘term’]) && is_numeric($qv[‘term’]) &&$qv[‘term’]>0) { //added check for greater than 0 as the default ALL is zero and … Read more