• Hi,

    I would like to display all my tags and not be limited by the 45 limit using the Tag Cloud. I just need to list them in alphabetical order. IS there a way?

    Also does anybody know why you can only display 45 tags in the cloud? It seems strange to have such a low limit when many blogs could have a lot more.

    TIA

Viewing 4 replies - 1 through 4 (of 4 total)
  • it seems that the “wp_tag_cloud()” function accepts a “number” parameter which default value is 45…

    http://codex.wordpress.org/Template_Tags/wp_tag_cloud

    Thread Starter planetphillip

    (@planetphillip)

    Yes, but the maximum is 45 tags. I want to display more.

    When I re-read my message it sounds like I am saying it only displays 45 tags.

    “number – Displays at most 45 tags”

    However, I’ve just read everything again and noticed that by adding zero as the number it displays them all.

    Thanks for the reply.

    I found the solution for you; you just need to updated the TAG function (wp_tag_cloud) located in category-template.php:
    * just replace (‘number’ => 45) to whatever you like or to 0 value for unlimited number of tags

    function wp_tag_cloud( $args = '' ) {
    	$defaults = array(
    		'smallest' => 8, 'largest' => 22, 'unit' => 'pt', 'number' => 45,
    		'format' => 'flat', 'orderby' => 'name', 'order' => 'ASC',
    		'exclude' => '', 'include' => ''
    	);

    And check my website I reset the number to 100:
    فساتين http://www.fsateen.com

    Actually wp_tag_cloud(“number=0”) does the trick

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Display more than 45 tags?’ is closed to new replies.