-
AuthorPosts
-
June 5, 2015 at 4:48 pm #293845
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?
June 5, 2015 at 5:03 pm #293865I am using SimpleTags plugin. Is this an inherent WordPress limit, x Theme limit, or indicative of the plugin?
June 5, 2015 at 9:58 pm #294037Hello 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.
June 5, 2015 at 11:32 pm #294107Alas, I was confident this would work but unfortunately, it did not. I still am limited to 100 tags.
June 5, 2015 at 11:53 pm #294122I 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!!
June 6, 2015 at 12:03 am #294129Nevermind, 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.
June 6, 2015 at 9:34 pm #294671Hello 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.
-
AuthorPosts