Show All the Tags in WordPress Post Editor

Want to show all the tags in the WordPress post editor, so you can easily tag a post with all available tags – you can with get_terms_args

In your functions.php add in…

add_filter( 'get_terms_args', 'themeprefix_show_tags' );
 // Show Tags
 function themeprefix_show_tags ( $args ) {
 if ( defined( 'DOING_AJAX' ) && DOING_AJAX && isset( $_POST['action'] ) && $_POST['action'] === 'get-tagcloud' ) {
 unset( $args['number'] );
 $args['hide_empty'] = 0;
 }
 return $args;
 }

You still have to click on “Choose from the most used tags” – but now they will all show in a tag cloud.

custom-taxonomy-tags

This example shows all custom taxonomy tags for a term called Dealer Speciality

 

Ref

1 Comment

  1. Claire Ward-Dutton on July 11, 2017 at 4:38 pm

    This has made my life so much easier – thank you

Leave a Comment





+ 38 = 42

%d bloggers like this: