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)
 

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
RDF | RSS | Atom 0.3 | XHTML | CSS |

2097 Test Drive is proudly powered by Wordpress 2.3.3 and Squible Beta 2.
All content is copyrighted by its author[s].