Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #293845

    schweinsberg
    Participant

    I have a monstrous problem that I am scared to death I can’t fix. I have 134 tags total. But the sidebar for my Integrity stack will only display 100 tags to select from. Each additional tag I add, bumps one from the beginning. I really need all of them. What can I do?

    #293865

    schweinsberg
    Participant

    I am using SimpleTags plugin. Is this an inherent WordPress limit, x Theme limit, or indicative of the plugin?

    #294037

    Rue Nel
    Moderator

    Hello There,

    Thanks for posting in! By default, WordPress limits the number of tags to 45. Please see the codex: http://codex.wordpress.org/Template_Tags/wp_tag_cloud

    To have more tags, since what you are trying to accomplish requires a template customization, we would like to suggest that you use a child theme. This allows you to make code changes that won’t be overwritten when an X update is released. After your child theme is setup, please review how we recommend making template changes in Customization Best Practices.

    Once your child theme is ready, please insert this code in your child theme’s functions.php

    //Register tag cloud filter callback
    add_filter('widget_tag_cloud_args', 'tag_widget_limit');
    
    //Limit number of tags inside widget
    function tag_widget_limit($args){
    
     //Check if taxonomy option inside widget is set to tags
     if(isset($args['taxonomy']) && $args['taxonomy'] == 'post_tag'){
      $args['number'] = 10; //Limit number of tags
     }
    
     return $args;
    }

    Let us know if this works for you.

    #294107

    schweinsberg
    Participant

    Alas, I was confident this would work but unfortunately, it did not. I still am limited to 100 tags.

    I put the code into functions, but alas, no change :(

    #294122

    schweinsberg
    Participant

    I should be specific that it is the sidebar that I cannot seem to get to show more than 100 tags. Here is an image. I need to be able to select from 140 tags from the blog page.

    The cloud on the “tag” page in admin seems to have expanded but not the selectable tags on the sidebar. :O!!

    The cloud seems to have expanded but not the selectable tags on the sidebar

    #294129

    schweinsberg
    Participant

    Nevermind, disregard the topic. The problem was not in inherent horizon in WordPress, but a setting in the TagCloud(SimpleTag) widget. I thought I had modified it in settings but you have to modify it in the widgets area, as seen in the image. The problem is solved. No need to worry, thanks. I don’t know if your code helped but this has. Now I can be happy again. I was very, very sad for an entire day and it was all I thought about. But I can be happy again.

    I am happy again

    #294671

    Rue Nel
    Moderator

    Hello There,

    You are welcome as always.
    We’re glad you figured out a way to resolve the tag cloud display issue.

    If there’s anything else, we can help you with, please let us know.

    Cheers.