Title: default_topic_count_scale
Published: April 25, 2014
Last modified: April 28, 2025

---

# default_topic_count_scale( int $count ): int

## In this article

 * [Parameters](https://developer.wordpress.org/reference/functions/default_topic_count_scale/?output_format=md#parameters)
 * [Return](https://developer.wordpress.org/reference/functions/default_topic_count_scale/?output_format=md#return)
 * [Source](https://developer.wordpress.org/reference/functions/default_topic_count_scale/?output_format=md#source)
 * [Changelog](https://developer.wordpress.org/reference/functions/default_topic_count_scale/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/functions/default_topic_count_scale/?output_format=md#wp--skip-link--target)

Default topic count scaling for tag links.

## 󠀁[Parameters](https://developer.wordpress.org/reference/functions/default_topic_count_scale/?output_format=md#parameters)󠁿

 `$count`intrequired

Number of posts with that tag.

## 󠀁[Return](https://developer.wordpress.org/reference/functions/default_topic_count_scale/?output_format=md#return)󠁿

 int Scaled count.

## 󠀁[Source](https://developer.wordpress.org/reference/functions/default_topic_count_scale/?output_format=md#source)󠁿

    ```php
    function default_topic_count_scale( $count ) {
    	return (int) round( log10( $count + 1 ) * 100 );
    }
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/category-template.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-includes/category-template.php#L795)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/category-template.php#L795-L797)

## 󠀁[Changelog](https://developer.wordpress.org/reference/functions/default_topic_count_scale/?output_format=md#changelog)󠁿

| Version | Description | 
| [2.9.0](https://developer.wordpress.org/reference/since/2.9.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fdefault_topic_count_scale%2F)
before being able to contribute a note or feedback.