Hello @readysite
From what we can see, you have added the wrong priority to that snippet of code. It should be 20 instead of 10, something like this –
function custom_add_count_on_archive_title( $title ) {
$term = get_queried_object();
if( $term instanceof WP_Term && 'category' === $term->taxonomy ) {
$title .= ' ('.$term->count. ') ';
}
return $title;
}
add_filter( 'get_the_archive_title', 'custom_add_count_on_archive_title', 20, 1 );
One important thing to note here is that in the future, we will not be able to provide support for custom code as this is something that’s not directly related to the theme. If you require such assistance, we recommend contacting a knowledgeable developer. ??
Hope this helps!
Thanks.