default_topic_count_scale() WordPress Function
This function allows you to change the number of topics that are displayed on the front page of your Wordpress site. By default, this is set to 10, but you can change it to any number you like.
default_topic_count_scale( int $count ) #
Default topic count scaling for tag links.
Contents
Parameters
- $count
(int)(Required)Number of posts with that tag.
Return
(int) Scaled count.
Source
File: wp-includes/category-template.php
function default_topic_count_scale( $count ) { return round( log10( $count + 1 ) * 100 ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
2.9.0 | Introduced. |