Custom Display of Tag Cloud
-
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 2008but what I need is this:
January 2009
December 2008
November 2008
October 2008
September 2008
August 2008I’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 ??
- The topic ‘Custom Display of Tag Cloud’ is closed to new replies.