wp_popular_terms_checklist


wp_popular_terms_checklist ( $taxonomy, $default = 0, $number = 10, $echo = true )

Parameters:
  • (string) $taxonomy Taxonomy to retrieve terms from.
  • (int) $default Not used.
  • (int) $number Number of terms to retrieve. Defaults to 10.
  • (bool) $echo Optionally output the list as well. Defaults to true.
Returns:
  • (array) List of popular term IDs.
Defined at:

Description

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

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.

Related Functions

wp_terms_checklist, wp_category_checklist, wp_link_category_checklist, wp_get_popular_importers, wp_clean_themes_cache

Top Google Results

User discussions

wpseek mobile