Hi support,
Do you have a trick to include all tags in the widget tag cloud?
https://codex.wordpress.org/Function_Reference/wp_tag_cloud
Making the number equal to 0 should do it – but can it be done with quick css or ?
Thx.
/OKEI
Hey OKEI,
Can you please explain a bit more what the issue is?
Which tag cloud are you using?
Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?
Best regards,
Victoria
Hi support,
For instance this post:
https://wordpressindex.dk/branche/krop-og-sind/behandling/kalleflebbe-dk/
…the tag widget in the right side doesn’t show all tags. I think it is limited to 50 tags.
Right now I do have around 150 tags and more are coming.
Do you still need access?
Thanks.
/OKEI
Hi,
Please try this code:
//Register tag cloud filter callback
add_filter('widget_tag_cloud_args', 'avia_tag_widget_limit');
//Limit number of tags inside widget
function avia_tag_widget_limit($args){
//Check if taxonomy option inside widget is set to tags
if(isset($args['taxonomy']) && $args['taxonomy'] == 'post_tag'){
$args['number'] = 1000; //Limit number of tags
}
return $args;
}
You can replace 1000 with any other value to increase or decrease the limit.
Best regards,
Peter
Thanks, Peter – it works perfectly :-)
Please close.
Best regards,
OKEI
Hi!
Great, glad we could help you :)
Regards,
Peter