1

Is it possible that Tag Cloud Widget will show only tags by category?

If a single post is from sports category, then the Tag Cloud Widget will only show tags about sports.

1
  • Anybody know a solution? Is possible this feature? Commented Nov 24, 2017 at 10:12

2 Answers 2

0

this is posible to do with custom coding or with using the plugin like this: WP Category Tag Cloud

3
  • Yes, I know these plugin, but in this case, I have to do different sidebars each category. I need a code that detect the category automatically. :( Commented Nov 24, 2017 at 12:49
  • 1
    ok, sorry, then you have to create custom widget and integrate custom functionality Commented Nov 24, 2017 at 15:11
  • Yes! But I don´t know how to custom my widget. :P Commented Nov 26, 2017 at 20:52
0

Simply use <?php wp_tag_cloud(array('smallest'=>10,'largest'=>22,'number'=>0,'taxonomy'=>array('category'))); ?>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.