//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;
}
but widget limit don’t working
Thanks
Best,
Paul
Site URL: hidden Theme version: 3.8.1 WooCommerce version: latest
Content is visible for topic creator and support staff only.
But keep in mind that this is default WP widget and our theme does not have any settings for this.
Our support does not include additional customization service. We provide support for XStore theme options and functions. Next time we won’t be able to provide support if your question is not related to theme functions.
Regards
Viewing 3 results
1 through 3 (of 3 total)
You must be logged in to reply to this topic.Log in/Sign up
Our mission is to help Internet businesses and their customers interact in a way that mirrors real-world customer experience: personal, human, and fun.
Upload your translation files
Lorem ipsum dolor sit amet consectetur adipisicing elitsed do
Love us as much as we love you?
If you love XStore theme and have something nice to say
don’t hesitate to tell about this! We’d appreciate if you could take a moment to give us 5-stars!