Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. query_posts('listing_category=musician');
  2. if (have_posts()) : while (have_posts()) : the_post();
  3. $posttags = get_the_tags();
  4. if ($posttags) {
  5. foreach($posttags as $tag) {
  6. $all_tags_arr[] = $tag -> term_id; //USING JUST $tag MAKING $all_tags_arr A MULTI-DIMENSIONAL ARRAY, WHICH DOES WORK WITH array_unique
  7.  
  8. }
  9. }
  10. endwhile; endif;
  11.  
  12. $tags_arr = array_unique($all_tags_arr); //REMOVES DUPLICATES
  13. foreach($tags_arr as $tag) {
  14. $includeTags = $tag.',';
  15. }
  16. $args = array('include'=>$includeTags);
  17. wp_tag_cloud( $args );