Function: wp_popular_terms_checklist

wp_popular_terms_checklist( string $taxonomy, integer $default, integer $number, boolean $echo )

Retrieve a list of the most popular terms from the specified taxonomy.

Shortcut: wptc

You can use above key combination to trigger the associated snippet for this function in the WordPress Snippets for Visual Studio Code extension. You can also use this shortcut to search for this function on this website.

If the $echo argument is true then the elements for a list of checkbox <input> elements labelled with the names of the selected terms is output. If the $post_ID global isn't empty then the terms associated with that post will be marked as checked.


Name Type(s) Default Value Description
$taxonomy string

Taxonomy to retrieve terms from.

$default integer

Not used.

$number integer 10

Number of terms to retrieve. Defaults to 10.

$echo boolean true

Optionally output the list as well. Defaults to true.



List of popular term IDs.

WordPress Developer Newsletter

Stay informed of new chapter releases, important WordPress API updates and more.