Hello Team,
Hope you guys are doing well.
I really wanna know how do I hide specific Tags using their id.
HERE Tom gave a PHP code to limit the visibility of tags.
Which works absolutely fine. But i’ll be very happy if you help me out with this “hide specific Tags using their id”
Tom’s code:
add_filter( 'widget_tag_cloud_args', 'generate_tag_cloud_limit' );
function generate_tag_cloud_limit($args){
// Check if taxonomy option of the widget is set to tags
if ( isset($args['taxonomy']) && $args['taxonomy'] == 'post_tag' ){
$args['number'] = 100; // Number of tags to show
}
return $args;
}