WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Anyone know if it's possible to create something similar to the wordpress built in tag cloud (wp_tag_cloud) but instead of displaying tags, display custom post types?


share|improve this question
up vote 0 down vote accepted

How about the wp_generate_tag_cloud() function? You'll need to feed it $tags, which is an array of objects with the link and term_id, set something like this.

$tags[]->link = $link;
$tags[]->id = $tag->term_id;

The term_id will only be used in the CSS...so don't sweat that too much.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.