Tagged: ,

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #169451

    Can you limit how many tags are shown on the tag widget within the footer?

    http://chriswardphotography.net/home/

    At the moment its 22 and I would like it to be around 10.

    Regards

    Chris

    #169473

    Hi Chris,

    Add this code at the end of your functions.php file:

    add_filter('widget_tag_cloud_args', 'tag_widget_limit');
    
    function tag_widget_limit($args){
    
    	if(isset($args['taxonomy']) && $args['taxonomy'] == 'post_tag'){
    	 $args['number'] = 10; 
    	}
    
    	return $args;
    	
    }

    Cheers!
    Josue

    #169857

    Perfect thanks :-)

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Footer tags’ is closed to new replies.