View the complete list of a taxonomy in the navigation menu

You can achieve the result using following code: $terms = get_terms( array( ‘taxonomy’ => ‘country’, ‘hide_empty’ => false, ‘orderby’ => ‘name’, ‘order’ => ‘ASC’, ) ); if ( !empty($terms) ) : $output=”<ul>”; foreach( $terms as $country ) { $output.= ‘<li><a href=”‘.get_term_link( $country->term_id ).'”>’. esc_attr( $country->name ) .'</a></li>’; } $output.='</ul>’; echo $output; endif; Here I’m using … Read more

Cannot delete or edit a single term in a custom taxonomy, taxonomy name is wrong?

Credit for this answer goes entirely to CodeMascot: Create and move terms for taxonomies After troubleshooting, I believe the issue is because I initially created the custom taxonomy with the name Purpose, but then changed it to purpose at another time. Calling $object->taxonomy returns Purpose on the affected term, while all the others listed in … Read more

Get taxonomy name for the current post

You should no longer use the legacy function parameter format. Instead, as the documentation says, use the get_terms( $args ) format: Since 4.5.0, taxonomies should be passed via the ‘taxonomy’ argument in the $args array: $terms = get_terms( array( ‘taxonomy’ => ‘post_tag’, ‘hide_empty’ => false, ) ); And as for getting only the terms assigned … Read more