Thread: Tech Wordpress question
View Single Post
Old 02-15-2016, 07:59 AM  
druid66
Confirmed User
 
Join Date: Feb 2006
Posts: 994
Wordpress question

Hi Guys,
I've tweaked my theme long ago heavily but i forgot where to edit tag cloud is it stored in functions.php?
Single post on my site looks like this:
Leaked photos of very cute Chinese police girl blowing her BF part 1/3 | Asian Sex

tags are at the bottom i would like to edit tags somehow so i'll have displayed only those tags which are from current post not top 50 tags.

this is tag cloud code i've copied from functions.php is it this code which i need to edit?

Code:
add_filter ( 'wp_tag_cloud', 'tag_cloud_count' );
function tag_cloud_count( $return ) {
$tags = explode('</a>', $return);
$regex = "#(.*title[=]')(.*)( topic.*)#e";
foreach( $tags as $tag ) {
$tagn[] = preg_replace($regex, "('$1$2$3&nbsp($2&nbsp;post'.(($2!=1)?'s':'').')')", $tag );
}
$return = implode('</a>', $tagn);
return $return;
}
__________________
Pure Japan japanese babes blog
druid66 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote