I've simply pasted <?php wp_tag_cloud('smallest=8&largest=18'); ?> somewhere in my theme and I'm getting few <a> tags with the same style:
style="font-size: 8pt"
What's the matter?
I've simply pasted <?php wp_tag_cloud('smallest=8&largest=18'); ?> somewhere in my theme and I'm getting few <a> tags with the same style:
style="font-size: 8pt"
What's the matter?
assuming that you have several tags, and the tags are used in different amounts - no idea.
link?
localhost ;) but it looks like this:
<a href='http://127.0.0.1/wordpress/tag/brthvbrthbtr/' class='tag-link-13' title='1 temat' rel="tag" style='font-size: 8pt;'>brthvbrthbtr</a>
<a href='http://127.0.0.1/wordpress/tag/bthbrhbt/' class='tag-link-12' title='1 temat' rel="tag" style='font-size: 8pt;'>bthbrhbt</a>
<a href='http://127.0.0.1/wordpress/tag/hgjhgmjfnn/' class='tag-link-11' title='1 temat' rel="tag" style='font-size: 8pt;'>hgjhgmjfnn</a>
<a href='http://127.0.0.1/wordpress/tag/sadas/' class='tag-link-4' title='1 temat' rel="tag" style='font-size: 8pt;'>sadas</a>
<a href='http://127.0.0.1/wordpress/tag/sda/' class='tag-link-9' title='1 temat' rel="tag" style='font-size: 8pt;'>sda</a>
<a href='http://127.0.0.1/wordpress/tag/sdas/' class='tag-link-5' title='1 temat' rel="tag" style='font-size: 8pt;'>sdas</a>
<a href='http://127.0.0.1/wordpress/tag/sdasd/' class='tag-link-8' title='1 temat' rel="tag" style='font-size: 8pt;'>sdasd</a>
<a href='http://127.0.0.1/wordpress/tag/sdasdas/' class='tag-link-7' title='1 temat' rel="tag" style='font-size: 8pt;'>sdasdas</a>
<a href='http://127.0.0.1/wordpress/tag/sdasdasd/' class='tag-link-6' title='1 temat' rel="tag" style='font-size: 8pt;'>sdasdasd</a>
<a href='http://127.0.0.1/wordpress/tag/sdf/' class='tag-link-15' title='1 temat' rel="tag" style='font-size: 8pt;'>sdf</a>
<a href='http://127.0.0.1/wordpress/tag/shnfgh/' class='tag-link-10' title='1 temat' rel="tag" style='font-size: 8pt;'>shnfgh</a>
<a href='http://127.0.0.1/wordpress/tag/srgdrg/' class='tag-link-14' title='1 temat' rel="tag" style='font-size: 8pt;'>srgdrg</a>these are very impressive tag names - is at least one of these tags used more often then others?
you could use this snippet to echo the name of the tag and in how many posts it appears:
<?php
$tags = get_tags();
foreach($tags as $key => $tag) {
echo $tag->name.' '.$tag->count.'<br />';
}
?>what does this snippet have in common with my problem? As you can see, each tag has font-size set to 8pt, which is weird, because it should be somewhere between 8pt and 18pt, and i have no idea why.
That code from alchymyth is to prove what the post count is for each tag, as it is the post count that determines the font size used in the tag cloud.
yeah, the idea was to check if the tags have different counts, which should then be picked up by the tag cloud.
would have taken you less than five minutes to try (copy/paste/save/refresh/simple) and to look at the output.
you didn't directly react and answer my first question, if you have used some of your tags more often than others.
i get it now. these are only test tags and none of them is used to tag the posts :) thank you :)
This topic has been closed to new replies.