Reduce number of tags displayed

Posted in: Newspaper
Post count: 83

Hello

I would like to reduce the number of tags showed on the website. I have tried to place a category tag cloud on footer but it shows 25 tags, so I would like to reduce them. I have been looking for the option but I can´t find it.

Also, I want to know how I could remove the title “Categories” and display just the tags.

Thanks

Post count: 22421

Hello,
We are not familiar with that particular plugin so we cannot say for sure how it should display the tags or categories. The plugin is not tested so we cannot say for sure how to make it display certain categories or tags.
Maybe the plugin author can provide some answers.
Thanks.

Post count: 83

Hello

I don´t refer to any particular plugin. I refer to cloud tags widget which is situated in Appearance-Widgets. It doesn´t allow to change tags displayed. I suppose that this is related with WordPress and not with newspaper theme.

Thanks

Post count: 83

I have solved the problem.

Thanks

Post count: 1341

Hi @Albert!

How did you solve your problem?

Post count: 83

Hello Edward

Put this code at the end of your functions.php theme file. Change the number you want and the taxonomy if you need. For example, I have changed post_tag and I have put ‘category’ to show category tags.

add_filter( 'widget_tag_cloud_args', 'tj_tag_cloud_limit' );
function tj_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'] = 25; // Number of tags to show
}
return $args;
}

  • This reply was modified 10 years by Albert.
Post count: 1341

Thank you Albert.

I used the plugin Simple Tags.

Result (Tags Cloud):

Sorry for Russian. ))

Post count: 83

Hi Edward

Yes, it is another option to use.

Viewing 8 posts - 1 through 8 (of 8 total)
The forum ‘Newspaper’ is closed to new topics and replies.