Post Tags
Conversation
Full Post
Comments
Fixed error in tag listing. March 7, 2008
Just fixed an error in a foreach() call in the new jwr_show_tags() function in Squible’s wp_cats_as_tags(). Turns out that, for unknown reasons, the old implementation would barf when it saw a post without any tags, when get_the_tags() returned an empty list. Thanks to the examples described here, I’m using an if() to bail out of the function: if (empty($posttags)) echo ""; else foreach The old way to do this was to throw a break at the en... (read post)Cats and Tags
newtag1
Writing
Implementation
thisisatag2
Work
Observations
Asides
thisisatag3
thisisatag1
squible-beta2
Jason Kottke
Links
thisisacat3
Piss-n-Vinegar
wp-themes
self-reference
thisisacat1
Beta2
Living in LA
wp-plugins
Old TCC
Books
newcat1
Photography
aside-tag1
wordpress
Widget
Commentary
Cats
Uncategorized
Ramblings
newcat3
Administrivia
newtag3
aside-tag2
Style Css
Diary
squible
newtag2
thisisacat2
tag cloud
newcat2
Php
Recent Posts
Recent Comments
- joecentric on Changelog.
- Administrator on Navel Contemplation.
- Perilously erudite. « the coffee chronicles on I shouldn’t even have left the house
- Return to the rant. « the coffee chronicles on Sunday afternoon hijinks.
- j on Nomenclature
Asides
Overall control over the Tag Cloud widget built-in to WP2.3 is wp_tag_cloud() located in /wp-includes/category-template.php. Remember that; it was hard to find the first time. (0)
Okay, so here’s a problem: the Tag Cloud on the main page is populated by actual tags, while the Squible show_tags() function on the single-post page shows cats as tags (since it only runs when wp_cats_as_tags is activated, duh). Sort that one out, why don’t you? This post, by the way, is in the “Asides (ID: 20)” category, but has tags “aside-tag1″ and “aside_tag2″. (0)
I’ve written previously on the attendant trials and tribulations accompanying a trip to a bookstore, especially for a person with choice disorder like myself. I was pleasantly surprised to discover a similar fate had once befallen Jason Kottke. (0)
You’ll notice that I haven’t commented, at all, on the current pre-Presidential-campaign primary season. There are several reasons for that, ranging from “I don’t write that often” to “I think the story tells itself”. Honestly, though, I think this opinion piece speaks for itself. For all of my liberal hand-wringing, Alex P. Keaton used to be one of my media icons, and it’s nice to see his creator wax nostalgic for the heady days of prime-time television. (0)
I’m unusually moved by the news that Gary Gygax, the father of Dungeons & Dragons, has passed away. I also feel a little older all of a sudden; not because of the obvious mortality issues, but because I haven’t played D&D in a long time. And that’s a shame, too. Anyone have a d20 handy? (0)
Bot Panel Left
Meta

