home

让wordpress显示文章页(内容页)的TAG

如果你使用wp内置的tag功能的话,可以使用如下代码将文章内的tag输出:

  1. <?php the_tags('Tag: ',',','') ?>

如本代码将输出文章所含的tag,Tag:tag1,tag2,tag3。
注意,此代码必须放在文章页或其它含有loop的模板内。

一般是
首页index.php
单篇single.php

Created By: sb123

Form Page: 让wordpress显示文章页(内容页)的TAG

Related Posts:


5 Responses to “让wordpress显示文章页(内容页)的TAG”

  1. 55sss
    May 4th, 2008 18:08
    5

    能不能在首页用个div框架来显示所有用过的TAGS呢?

  2. sb123
    May 4th, 2008 18:24
    4

    应该可以

    但具体代码我也不懂

  3. Heyi
    June 1st, 2008 22:52
    3

    主要是内容页了,wordpress本身的tag功能很差的,可以到wordpress.org找个plugin插件。 :im286-ohh:

  4. 午夜客
    October 27th, 2008 08:34
    2

    不错, :lol:

  5. 老永
    March 20th, 2010 17:15
    1

    今天休班在家没事,来看看你的文章,不错。 欢迎回访 http://hi.baidu.com/jipiaosky/

Leave a Reply

click to change 验证码(必需)