Forums

Display more than 45 tags? (5 posts)

  1. planetphillip
    Member
    Posted 4 years ago #

    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

  2. wp_guy
    Member
    Posted 4 years ago #

    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

  3. planetphillip
    Member
    Posted 4 years ago #

    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.

  4. fsateen.com
    Member
    Posted 3 years ago #

    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

  5. wp_guy
    Member
    Posted 3 years ago #

    Actually wp_tag_cloud("number=0") does the trick

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags