Archived topic
Amount of tags
1 reply · Started by Anonymous on September 6, 2015
Hello Tom,
may this question was already asked but i did not find in the support thread the answer so i may ask again.
the amount of tags which are showing on my site is limited (i counted 47).
how can i have an tag cloud which contains all tags i am using? where to modify the theme?
Thanks for help
Chris
Hi Chris,
This is actually WordPress functionality - not GP.
To increase or decrease the number of tags, you should be able to use this function:
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;
}
Adding PHP: https://generatepress.com/knowledgebase/adding-php-functions/
Let me know :)
