• add_filter( 'widget_tag_cloud_args', 'wf_tag_cloud_widget_parameters' );
    function wf_tag_cloud_widget_parameters( $args ) {
    	$args['number']  = 10;
    	$args['orderby'] = 'count';
    	$args['order']   = 'DESC';
    
    	return $args;

    The above should show only the top 10 tags with the most posts, but is not.

    On the following are the top 10 Locations displayed with random sort order and posts count (look at the counts in “Show filter” for Locations):

    Svartskog (828), Brazil (608), Norway (1,140), Pantanal (291), Socotra (997), Fyrsteilene (87), Venezuela (167), India (513), Amazon rainforest (202), Itatiaia National Park (138).

    Based on what you see in Locations in Filter, these are the actual top 10 (DESC):
    Norway (1,140), Socotra (997), Svartskog (828), Brazil (608), India (513), Ecuador (503), Sikkim (461), Bolivia (328), Amazon rainforest (202), Pantanal (291).

    How to fix this?

    • This topic was modified 11 months, 2 weeks ago by James Huff. Reason: redundant link removed

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Tag cloud not showing top 10’ is closed to new replies.