default_topic_count_scale

Default topic count scaling for tag links.

Description

(int) default_topic_count_scale( (number) $count ); 

Returns (int)

scaled count

Parameters (1)

0. $count (number)
Number of posts with that tag

Usage

  1. if ( !function_exists( 'default_topic_count_scale' ) ) { 
  2. require_once ABSPATH . WPINC . '/category-template.php'; 
  3.  
  4. // number of posts with that tag 
  5. $count = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = default_topic_count_scale($count); 
  9.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/category-template.php  
  1. function default_topic_count_scale( $count ) { 
  2. return round(log10($count + 1) * 100);