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 ($2 post'.(($2!=1)?'s':'').')')", $tag );
}
$return = implode('</a>', $tagn);
return $return;
}