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.


Parameters

$count

(int)(Required)Number of posts with that tag.


Top ↑

Return

(int) Scaled count.


Top ↑

Source

File: wp-includes/category-template.php

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

Top ↑

Changelog

Changelog
VersionDescription
2.9.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.