How to Modify the Number of Tags Displayed in WordPress

wordpress tag cloudmodify tag display countwp-includes category-templatewp_tag_cloud numberwordpress customization
Published·Modified·

By default, WordPress displays 45 tags. However, if your theme enables a color cloud or bold display, showing too many tags can look awkward. Therefore, we need to reduce the number of displayed tags. The method is actually very simple.

Navigate to the wp-includes/category-template.php directory, then find around line 524 (in my WordPress 3.8, it is line 524), or simply search for the keyword wp_tag_cloud. You will see 'number' => 45. This 45 is the default tag display count, which you can modify to the desired number based on your theme. For example, the XiaoZ Blog was modified to display only 25 tags.\n Modify tag quantity

Similarly, if you want to display more tags, simply change the number to a value greater than 45.