This reply has been marked as private.
This reply has been marked as private.
This reply has been marked as private.
This reply has been marked as private.
This reply has been marked as private.
This reply has been marked as private.
This reply has been marked as private.
This reply has been marked as private.
Hi veronica
Thanks for reply , I am aware about what you explained ,
kindly please read my questions and reply , see above
best
This reply has been marked as private.
This reply has been marked as private.
This reply has been marked as private.
This reply has been marked as private.
This reply has been marked as private.
Hi Diana
kindly answer my second question !!!!!, my testing site has a lot of tags (and growing), I am struggled with bad looking messy list in footer tag cloud widget
so I need to limit numbers of tags showing in footer , I want to show 10 tags ONLY
I tried myself many codes , and add them to function , nothing works
such as
add_filter(
'term_links-post_tag'
,
'limit_to_five_tags'
);
function
limit_to_five_tags(
$terms
) {
return
array_slice
(
$terms
,0,5,true);
}
also tried this , did not work
/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;
}
</div>
please provide me with code to limit