Tagged: , ,

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1006542

    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

    #1006662

    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

    #1008280

    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

    #1008319

    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

    #1008345

    Thanks, Peter – it works perfectly :-)

    Please close.

    Best regards,
    OKEI

    #1008354

    Hi!
    Great, glad we could help you :)

    Regards,
    Peter

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘Widget tag cloud – trick to include all tags?’ is closed to new replies.