Sep
25
2007
0

Customizing Tags in Wordpress 2.3

Okay, folks. Seems to have worked…so far.

And because this is the first thing I wanted to be able to do: let's talk tags.

The UTW importer seems to work very well–although, come on, guys: UTW was a good plugin. Do you really have to refer to it as a "nasty habit"? Kinda tacky.

Anyway, it zapped my 500-some odd tags fairly quickly. There were four very odd errors where it appears tags didn't make the leap–some sort of database error–but I didn't take down the error. If I see it again, I will.

But here's the part that's a little wonky–and a little unnerving. There's nothing in the Wordpress admin area to let you tinker with tags. They're just sort of there. I understand there's some plugins to help the tag admin thing, but as long as it works, I don't care.

I had to strip the UTW code out of my theme because it was causing errors (and of course, reactivating the UTW plugin caused a fatal error which Wordpress mercifully put the kibosh on before it could do any damage). So how to get the tags back in?

Well, this post is a good start, and the followup's not bad, but what if you just want to say something witty and then list your tags in a comma-separated list? It's not obvious.

< ?php the_tags('Taggification: ', ', ' , ''); ?>

That's how I do the tags on this theme. And as for context of where it goes?

<div class="storycontent">
< ?php the_content(__('(more...)')); ?>
</div>
<br />< ?php the_tags('Taggification: ', ', ' , ''); ?>
<p>Filed under: < ?php the_category(' and') ?>
<br />Comments: < ?php comments_popup_link(__('None'), __('1 Comment'), __('% Comments')); ?></p>

Tinker with it till you get it to look like what you want.

I'm going to be changing themes anyway. This one just looks like a giant nasty kluge.

Written by Widge in: Wordpress | Tags: , , ,
Widge and his truest friend

This is me.

No, really.

I am a writer, poet, spoken word performer, actor, singer, improviser, content creation and idea machine, freelance iconoclast, and the internet's janitor that dispenses pop culture wisdom to the protagonist of your choice. I have seen too many movies, read too many comic books, and when the zombies finally come, I'm the one you want to call. I sure as hell won't answer the phone, but it's the thought that counts. I advise people on the net, websites and technology, because I know these things instead of having a life or sleeping.

If you like something I've done, donate to the Widge Wants to Kill His Day Job Fund. Or if you'd like to hire me for a job, my rates are terribly reasonable. We thank you.

Powered by WordPress. Theme: TheBuckmaker's Aerodrome.