September 21, 2007

WordPress tagging is annoying me

Tagged as:

UPDATE: got it working using single_tag_title(); (which I didn't see listed in the WordPress Codex...)

I'm trying to get my LetoPrime theme ready for WordPress 2.3. The whole purpose of 2.3 (well, the main purpose) is to get tagging posts into the core of WordPress. Now this has been available for quite a while now; I've been using Ultimate Tag Warrior for a long time and I absolutely love it. But the developer of UTW, Christine, is stopping development of it since it's redundant to have two tagging functions. (I disagree with that, however.)

Right now I'm trying to get my tag.php page working. It's the page that lists the posts that have a particular tag, like this tag page on Lost. Notice a the top where it says "Post Tagged Lost"? I'm trying to do that in WordPress, but I can't since the tag I have to use the_tags(); can only be used in "the loop." (which is the main part of a post.) I need it as an h2.

I really hope there's a workaround for this. It's something simple that should work.

Post Information
david's picture
This article was written by david and published on
September 21, 2007 at 3:47am.
The article was given the following tags:
Comment Information
david's picture
david
Sep 25, 2007
11:10pm

Thanks, Antoine. I actually got the tag cloud and the like to work, but somehow I managed to break my test site with the updated theme. The theme stopped working (gave me a blank screen) and caused my admin section to not load, either. Blank screen anywhere. Yet when I set it to the default theme through the database, it worked. So there's something screwy going on with the theme.

Which is really frustrating.

Comment Information
Guest's picture
Antoine
Sep 24, 2007
2:47pm

Hi,

I found a way to do what you want with WP2.3:
In tag.php, instead of:

UTW_ShowCurrentTagSet("tagsetcommalist");

you can use

echo get_query_var('tag');

Hope it helps,

Antoine

Post new comment

  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Textual smileys will be replaced with graphical ones.

More information about formatting options