No title attribute for wp_tag_cloud links
21:16 07 Apr 2026

my args look like this:

//short version of $args_c
$args_c = [ "topic_count_text_callback"=> "my_tax_callback",
            "show_count" => 1, //if this is present the aria-label attribute shows
            ];

function my_tag_text_callback( $count ) {
             return sprintf( _n('%s post', '%s posts', $count), number_format_i18n( $count ) );
            }

wp_tag_cloud($args_c);

This adds an aria-label attribute:

aria-label="text(x posts)"

No title attribute is generated. Is the title attribute obsolete and the aria-label the preferred attribute? If the title attribute still has a value for SEO, is there a way to add it programmatically?

wordpress seo