Revision: 41885
Updated Code
at February 24, 2011 08:41 by daif
Updated Code
query_posts('category_name=scribbles');
if (have_posts()) : while (have_posts()) : the_post();
$posttags = get_the_tags();
if ($posttags) {
foreach($posttags as $tag) {
$all_tags_arr[] = $tag -> term_id; //USING JUST $tag MAKING $all_tags_arr A MULTI-DIMENSIONAL ARRAY, WHICH DOES WORK WITH array_unique
}
}
endwhile; endif;
$tags_arr = array_unique($all_tags_arr); //REMOVES DUPLICATES
foreach($tags_arr as $tag) {
$includeTags = $tag.',';
}
$args = array('include'=>$includeTags);
wp_tag_cloud( $args );
Revision: 41884
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at February 24, 2011 08:38 by daif
Initial Code
query_posts('category_name=scribbles');
if (have_posts()) : while (have_posts()) : the_post();
$posttags = get_the_tags();
if ($posttags) {
foreach($posttags as $tag) {
$all_tags_arr[] = $tag -> term_id; //USING JUST $tag MAKING $all_tags_arr A MULTI-DIMENSIONAL ARRAY, WHICH DOES WORK WITH array_unique
}
}
endwhile; endif;
$tags_arr = array_unique($all_tags_arr); //REMOVES DUPLICATES
foreach($tags_arr as $tag) {
$includeTags = $tag.','; //USING JUST $tag MAKING $all_tags_arr A MULTI-DIMENSIONAL ARRAY, WHICH DOES WORK WITH array_unique
}
$args = array('include'=>$includeTags);
wp_tag_cloud( $args );
Initial URL
http://www.wprecipes.com/get-tags-specific-to-a-particular-category-on-your-wordpress-blog
Initial Description
Most of this code is by: http://www.wprecipes.com/get-tags-specific-to-a-particular-category-on-your-wordpress-blog I simply added the Tag Cloud
Initial Title
Wordpress: Category Specific Tag Cloud
Initial Tags
wordpress
Initial Language
PHP