I thought this would have displayed the post counts right next to the clickable links
wp_tag_cloud(
array( 'taxonomy' => $taxonomy,
'format' => 'list',
'smallest' => 12,
'largest' => 12,
'number' => 10000 ,
'separator' => '<li>' ,
'topic_count_text_callback'=> 'default_topic_count_text' )
);
but, it ends up displaying this;
item 1
item 2
item 3
What's the trick to make it display something like this?
item 1 (100)
item 2 ( 90 )
item 3 (15 )
I tried the following codex code, but that caused no visible change.
wp_tag_cloud( array( 'topic_count_text_callback' => 'my_tag_text_callback' ) );
function my_tag_text_callback( $count ) {
return sprintf( _n('%s picture', '%s pictures', $count), number_format_i18n( $count ) );
}