• Resolved meyithi

    (@meyithi)


    I’ve looked over the documentation for the tag cloud, but I can’t see any way to make the tag cloud display the most recent tags. I hit the default 45 limit however tags from new posts don’t seem to be showing up in the cloud.

    Is there a way to keep the tag cloud up-to-date or am I best using a third party solution, thanks.

    http://www.meyithi.com/tags/

Viewing 12 replies - 1 through 12 (of 12 total)
  • Thread Starter meyithi

    (@meyithi)

    Further research indicates that there is no such function unless I increase the size of my cloud, which is a shame 🙁

    I’m having exactly the same problem. After reading this post, I checked my blog and, sure enough, I had exactly 45 tags displayed. Is there a fix for this? I’ve checked other posts and can’t find an answer that works.

    @meyithi

    Try using term_id for the ‘orderby’ parameter, with DESC for ‘order’:

    <?php wp_tag_cloud('orderby=term_id&order=DESC'); ?>

    That will display all recently used tags. Unfortunately it removes the ability to sort displayed tags in alphabetical or count order.

    @anotherperson

    If you’re asking how to increase the number of tags to display, there is the ‘number’ parameter for this:

    <?php wp_tag_cloud(‘number=100’); ?>

    Using:

    number=0

    will display all tags used on your blog.

    Reference:
    http://codex.wordpress.org/Template_Tags/wp_tag_cloud

    Thanks, KAfkaesqui. One other question – what file contains the location for the code you provided?

    Thanks!

    Usually it’s the sidebar (sidebar.php) template for a theme. But it depends on the theme.

    Aha, that’s why I can find it – I’m using the 3 column Cutline theme and it doesn’t appear in either of my sidebar files. Any other ideas?

    The Cutline themes as I know them do not sport a tag cloud. Is this a modified version of the theme, or a (very) recently updated one?

    Hi Kafkaequi,

    I use the older (1.1) three column version of the Cutline theme and it does have a tag cloud (which works – up to the forty-five tag limit). I can’t seem to locate the code that pertains to it though. There is also a widget for the tag cloud in the control panel but, again, I can’t see any code to edit or locate the file that contains the code. Hope that helps.

    So it’s a widget? Would have helped to know this first. Basically, widgets override anything in the sidebar(s). You would not find it in the template itself.

    The default tag cloud widget unfortunately has no options beyond title, which means it uses wp_tag_cloud() with the default parameter values intact. You could modify this through the widget’s source (found in widgets.php under wp-includes/), but you may be better off with a third-party plugin that provides a far more configurable tag cloud:

    http://wordpress.org/extend/plugins/configurable-tag-cloud-widget/

    Thanks, the Configurable Tag Cloud Widget works like a charm.

    Even if i use the descending function, the only tags that show up are my old ones! :'( How do i fix this.

    For the default widgets, edit wp-includes/widgets.php using information found at:

    wp_tag_cloud

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘WP Tag Cloud’ is closed to new replies.