It is possible to add the Terms Display output directly into your site’s PHP files. The best approach is to use the PHP to include the shortcode inside a PHP snippet, as in this example below. There is also a legacy option allows you to make choices directly in the PHP code. This is the basic code snippet: Here are examples of how you can customize that basic code with more details: ‘size’ => ‘true’, ‘smallest’ => 8, ‘largest’ => 22, ‘unit’ => ‘pt’, ‘color’ => ‘true’, ‘maxcolor’ => ‘#000000’, ‘mincolor’ => ‘#CCCCCC’, ‘number’ => 45, ‘format’ => ‘flat’, ‘cloud_selection’ => ‘count-desc’, ‘cloud_sort’ => ‘random’, ‘exclude’ => ”, ‘include’ => ”, ‘limit_days’ => 0, ‘min_usage’ => 0, ‘notagstext’ => __(‘No tags.’, ‘simpletags’), ‘xformat’ => __(‘%tag_name%‘, ‘simpletags’), ‘title’ => __(‘
Tag Cloud #
‘, ‘simpletags’), ‘category’ => 0, ‘taxonomy’ => ‘post_tag Here is an example of that legacy code in use. In this code, we display randomly the top 100 tags. The max width will be 45px and the min is 12px. The color used for max tags will be red (#FF0000) and for min tags green (#00FF0B).
