• I know this may seem odd, but I’m trying to force a tag cloud to display by date.

    I’ve already overridden the basic tag cloud by copying the code from core files and creating my own widget. There’s not a *lot* that’s overridden, and most of the original file is pretty much how you see it within core. But I’m glad I took the time to do it, because now I’ve seen that I need to further customize my cloud.

    What I am using Tags for is dates, really. It’s a custom monthly archive (that I cannot simply pull off with categories and date-based archive lists for reasons I won’t get into here. Yes, it would seemingly make sense, but it was tried, and it doesn’t work with what I’m doing), and I’ve used the Tagging system to generate a list of month and year based archives. However, the tag cloud is pulling in the data alphabetically, and I need it in monthly/yearly order.

    Right now I have this:
    August 2008
    December 2008
    January 2009
    November 2008
    October 2008
    September 2008

    but what I need is this:
    January 2009
    December 2008
    November 2008
    October 2008
    September 2008
    August 2008

    I’m guessing I’m going to need to create some kind of conversion where I turn the above tags into strings (probably with mktime? Which *sucks* because I know mktime is difficult to work with) into numbers, and then use a nested loop to pull them into the proper format. However, I’m having issues pulling this off properly.

    Has anyone done something like this before, and can maybe give me a point in the right direction? Maybe combining the date-based category archive files with the tag cloud? (hmm….)

    Thanks ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • hi there! did you ever figure out your problem for tags? I’m trying add custom tag cloud to individual posts of tags ONLY used in that post. Do you have any suggestions?

    Thread Starter Doodlebee

    (@doodlebee)

    Nope – still haven’t worked this out yet – if I do ever figure it out, I’ll be posting the solution though ??

    However, there’s already a built-in function to display tags for the post you’re on. If you only want the tags associated with a particular post to show, then use <?php the_tags(); ?>

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