As far as I know you should be fine. That is stored in the database rather than in any file.
Thanks for your answer but what do you mean “stored” ? The function is in a file (category-template.php) and i opened the file and corrected the 45 to 0 in the file…
Another example : i put a sentence into the #responde div to advice the visitors that they must put raw html codes between <code> and </code>. The #respond div is in the comment-template.php which is also in the wp-includes folder like the category-template.php (so out of the child theme folder). After the automatic WP update this sentence has disappeared, i guess because WP changes all files after an update, which means that if i want to make changes in my WP structure (add a sentence for example), i must readd my changes after each update…
if you are referring to the tag-cloud-widget, then using a filter function in functions.php of your theme should work;
example:
add_filter('widget_tag_cloud_args','set_tag_cloud_number');
function set_tag_cloud_sizes($args) {
$args['number'] = 999;
return $args; }
http://codex.wordpress.org/Function_Reference/wp_tag_cloud
I wrote a blog post about that while ago: http://www.transformationpowertools.com/wordpress/edit-widget-parameters-filter-wordpress
hello alchymyth, your answer seems perfect and thanks for the codes, i am not so performant in php or javascript to write something by myself… i will read your post, i will try your code and come back to tell you if it worked… thanks again !
@ alchymyth, i added your code to my functions.php of my theme and i had the following error message :
Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘set_tag_cloud_number’ not found or invalid function name in …/blog/wp-includes/plugin.php on line 199
I do not have any knowledge of php or js codes but this message told me that you had a small mistake, so i corrected it as in follows :
add_filter('widget_tag_cloud_args','set_tag_cloud_sizes');
function set_tag_cloud_sizes($args) {
$args['number'] = 0;
return $args; }
i corrected the set_tag_cloud_number to set_tag_cloud_sizes in the first line… and it seems that it works. i guess you had it by mistake, am i right ? or it works now juste by chance π also i prefered to give zero instead of 999 as i would not like to limit the number, who knows, maybe i will have more than 999 tags π
thanks again, you helped me a lot !
well done π
yes, it was my mistake; I change the code to say ‘number’ in the first line, but not in the second line.
Ah, so in the second line i must correct it to : function set_tag_cloud_number($args) { ?
In the meantime it seems that the code works… it is just by chance ? π
you changed the first line to match the second line – that is absolutely OK; function names are arbitrary, i.e. do not need to match anything going on within the function.
you can use either your version:
add_filter('widget_tag_cloud_args','set_tag_cloud_sizes');
function set_tag_cloud_sizes($args) {
$args['number'] = 0;
return $args; }
or what I tried to post:
add_filter('widget_tag_cloud_args','set_tag_cloud_number');
function set_tag_cloud_number($args) {
$args['number'] = 0;
return $args; }
see also http://codex.wordpress.org/Function_Reference/add_filter
the function name used in the ‘add_filter’ code needs to match the name of the used function – that is all.
Ok, perfect… thanks a lot again for your help !