Matt Mullenweg linked to a post on Aiming for Independence about adding the new tags to your WordPress theme.
Thankfully, much like categories, it is a simple adjustment, requiring only another bit of WordPress specific template code.
>?php the_tags(‘before’, ’separator’, ‘after’); ?<
I, for one, am glad it is so simple to implement and I hope most theme makers will update their themes to include this functionality.
My biggest question is “what will happen if we take the newly updated theme, and place it on a blog running a previous version of WordPress?”
Is there some way to check which version of WordPress is being run, or will we have to put out a WordPress 2.3 only version of each and every theme?
Do you like this article? Submit it to Blogosphere News!
13 Responses
Mary-Ann Horley
September 17th, 2007 at 10:38 am
1can’t the theme designer wrap it in an “if function exists” thingie?
Nathan Rice
September 17th, 2007 at 10:40 am
2>?php
if function_exists( the_tags() ) { the_tags(); }
?
David Peralty
September 17th, 2007 at 11:46 am
3The sad part is, I knew about using that for checking for plugins and everything, but I didn’t even think to use it to check to see if a core feature was there…
Thanks all (I feel really dumb now).
Christine From The Internet
September 17th, 2007 at 3:06 pm
4I’m in the process of making a plugin that will make the template tags for UTW work with the wordpress 2.3 tag store; so themes that were using UTW will be able to keep on working with only a little bit of pain (:
How To Add Wordpress 2.3 Tags To Your Current Theme, Part 2 | Aiming for Independence
September 18th, 2007 at 5:49 am
5[...] info for theme designers! Blogging Pro asked this on his blog and Nathan Rice was quick with an answer. PHP allows you check whether a [...]
WordPress 2.3 Theme Backward Compatibility | Nathan Rice
September 24th, 2007 at 3:48 pm
6[...] at BlogginPro, the question was posed: My biggest question is “what will happen if we take the newly updated [...]
All Night Coder - Today’s Top Blog Posts on Programming - Powered by SocialRank
October 1st, 2007 at 3:14 am
7[...] Adding WordPress 2.3 Tags to a Theme [...]
如何添加 WordPress 2.3 标签到你使用的主题 - 第二部分 - WordPress中文站
April 13th, 2008 at 7:42 pm
8[...] 对于主题开发者重要信息!Blogging Pro 在他的 Blog 上询问此事,Nathan Rice 很快回答了这个问题。PHP 允许你在使用一个函数之前,检查它是否存在。如果对你的标签调用增加一个条件,那么标签调用只能对 WP 2.3 用户有效。如果你输入的标签代码没有条件判断,那么 WP 2.2 的用户载入他们的主题时,运行到这个代码就会弹出错误信息。主体设计者可以像这样来包含他们的标签代码: <?php if ( function_exists(’wp_tag_cloud’) ) : ?> [...]
如何让您当前主题支持 Wordpress 2.3 的 Tags 功能 2 | Dreamcolor's Cote
August 3rd, 2008 at 10:27 pm
9[...] Blogging Pro 问到了这个问题,并且 Nathan Rice 很快给予了答复。 PHP [...]
ebooks
October 1st, 2008 at 1:23 pm
10Great post! May i share on my website? http://www.ebookee.com
长春策划
October 6th, 2008 at 1:56 am
11^_^欢迎访问我的小站。长春策划的小站
蓝兔
October 6th, 2008 at 3:26 am
12Great post! May i share on my website? http://www.sinoblog.org
网匠
October 25th, 2008 at 3:27 am
13^_^欢迎访问我的小站。网匠的小站
RSS feed for comments on this post · TrackBack URI
Leave a reply