Home › Forums › CSS › Display tags for posts under Work Category? › Re: Display tags for posts under Work Category?
April 19, 2013 at 11:18 am
#132445
TheDoc
Member
Looks like there’s no default option to modify the output of wp_tag_cloud, though you can hook into it to try and remove the `href` attribute by doing something like this: http://wpsnipp.com/index.php/functions-php/remove-title-attribute-from-wp_tag_cloud/
If you’re using `wp_tag_cloud` for the font sizing component, there’s not much I can help you with there. If you don’t need the font-sizing (which I think is a bit tacky, to be honest) then you can skip using it altogether and just echo out each of your tags as you go.
if ($posttags) {
foreach($posttags as $tag) {
echo ‘‘ . $tag->term_id . ‘‘;
}
}