让UTW用wordpress 2.3来实现tag功能

安装的时候UTW和wp自带的tag功能有冲突,看了一下,其实解决方法还是很简单.
首先移除或者暂停UTW.然后到/wp-admin/import.php里导入UTW数据(导的过程很简单,一路Next即可).

接下来就是页面展现的问题了.可以用the_tags来展示.比如:

[php]
< ?php the_tags('Tags: ', ', ', '
‘); ?>
[/php]

UTW的用户的Tag搜索结果界面应该是一个page,默认的是tag.php.
然后把tag.php里的utw标签换成wp自带的即可.

比如我的tag.php是这样的.
[php]

Tagged: < ?php single_tag_title(); ?>

[/php]

接下来是Tag Clouds,UTW一般是以tags.php为模板建立的page,所以我们还是只需用wp_tag_cloud标签改tags.php即可.
我的tags.php
[php]
< ?php wp_tag_cloud('smallest=8&largest=22&number=1000&order=DESC'); ?>
[/php]

然后基本就是接近完美的tag了.

3 Responses to 让UTW用wordpress 2.3来实现tag功能

  1. 孙波 says:

    这个很好,刚升完级,就用上了你的这篇文章

  2. Laozei says:

    学习一下,哈哈

  3. zhlsk says:

    正找这东西呢 忽忽~

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>