September 21, 2007

WordPress tagging is annoying me

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
Antoine'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

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Post new comment

By leaving a comment on this site you agree to the Comment Guidelines.
Spammers please note that "nofollow" tags are used for your website. Spammers, this site is not for you to advertise on. I reserve the right to rename or delete spam links.
The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • Textual smileys will be replaced with graphical ones.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
1 + 1 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.