Template Tags – WordPress 模板标签

  • A+
所属分类:WordPress教程

模板标签(Template tags)在博客的模板文件中使用,用来动态的显示内容或自定义网站。下面介绍的是一些在WordPress中常用的标签。

文件

模板标签的文件存储在 wp-includes 目录中。文件名的后缀是”-template.php”以和其他 WordPress 文件区分。共有9个模板标签文件:

模板标签

通用标签(General tags)

wp-includes/general-template.php

作者标签(Author tags)

wp-includes/author-template.php

书签标签(Bookmark tags)

wp-includes/bookmark-template.php and wp-includes/bookmark.php

分类标签(Category tags)

wp-includes/category-template.php

评论标签(Comment tags)

wp-includes/comment-template.php

链接标签(Link tags)

wp-includes/link-template.php

文章标签(Post tags)

wp-includes/post-template.php

文章缩略图标签(Post Thumbnail tags)

wp-includes/post-thumbnail-template.php

导航菜单标签(Navigation Menu tags)

wp-includes/nav-menu-template.php

资源

http://codex.wordpress.org/Template_Tags

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: