WordPress 中文文档

Template Tags

出自WordPress Chinese 中文文档

跳转到: 导航, 搜索

wordpress.org.cn

目录

Template tags are used within your blog's Templates to display information dynamically or otherwise customize your blog, providing the tools to make it as individual and interesting as you are. Below is a list of the general user tags available in WordPress, sorted by function-specific category.

For further information on template tags and templates in general, see the following:

Note: If you have an interesting twist on the implementation of a template tag, you're encouraged to add to its documentation for the benefit of other WordPress users. However, first see Contributing to WordPress and Codex:Contributing for help and guidelines on editing Codex pages.

Tags

Include Tags
Blog info tags
Lists Dropdown tags
Login/Logout tags
Post tags
Comment tags
Post Thumbnail tags
Attachment tags
Category tags
Tag tags
Author tags
Date and Time tags
Permalink tags
Shortlink tags
Links Manager tags
Edit Link tags
Title tags
Query tags
Navigation Menu tags
Uncategorize tags
(Please categorize)

onlyincludecodewp-includes/link-template.php/code/onlyinclude

div class=template-description style=padding: 0 1.5em; border: 1px solid #eeeeee; background-color: #f9f9f9

Template Description

Link to the source code on http://core.trac.wordpress.org/browser/.

Parameters

  1. filename
  2. (option) path to tag (version) or trunk. This option is only used for a new function.br /Default: codetags/nowiki{{/nowikiCurrentVersionnowiki}}/nowiki/code (the latest stable version of WordPress)
    • codetrunk/code -- trunk is the latest bleeding edge development version of WordPress.

Usage

Link to the stable version: preTemplate:BrowseSource/pre

Link to trunk: preTemplate:BrowseSource/pre

/div

wordpress.org.cn:

Source Code

!-- 3.0:

div class=template-description style=padding: 0 1.5em; border: 1px solid #eeeeee; background-color: #f9f9f9

Template Description

Link to the source code on http://core.trac.wordpress.org/browser/.

Parameters

  1. filename
  2. (option) path to tag (version) or trunk. This option is only used for a new function.br /Default: codetags/nowiki{{/nowikiCurrentVersionnowiki}}/nowiki/code (the latest stable version of WordPress)
    • codetrunk/code -- trunk is the latest bleeding edge development version of WordPress.

Usage

Link to the stable version: preTemplate:BrowseSource/pre

Link to trunk: preTemplate:BrowseSource/pre

/div

wordpress.org.cn

div class=template-description style=padding: 0 1.5em; border: 1px solid #eeeeee; background-color: #f9f9f9

Template Description

Link to the source code on http://core.trac.wordpress.org/browser/.

Parameters

  1. filename
  2. (option) path to tag (version) or trunk. This option is only used for a new function.br /Default: codetags/nowiki{{/nowikiCurrentVersionnowiki}}/nowiki/code (the latest stable version of WordPress)
    • codetrunk/code -- trunk is the latest bleeding edge development version of WordPress.

Usage

Link to the stable version: preTemplate:BrowseSource/pre

Link to trunk: preTemplate:BrowseSource/pre

/div

wordpress.org.cn

div class=template-description style=padding: 0 1.5em; border: 1px solid #eeeeee; background-color: #f9f9f9

Template Description

Link to the source code on http://core.trac.wordpress.org/browser/.

Parameters

  1. filename
  2. (option) path to tag (version) or trunk. This option is only used for a new function.br /Default: codetags/nowiki{{/nowikiCurrentVersionnowiki}}/nowiki/code (the latest stable version of WordPress)
    • codetrunk/code -- trunk is the latest bleeding edge development version of WordPress.

Usage

Link to the stable version: preTemplate:BrowseSource/pre

Link to trunk: preTemplate:BrowseSource/pre

/div

wordpress.org.cn

div class=template-description style=padding: 0 1.5em; border: 1px solid #eeeeee; background-color: #f9f9f9

Template Description

Link to the source code on http://core.trac.wordpress.org/browser/.

Parameters

  1. filename
  2. (option) path to tag (version) or trunk. This option is only used for a new function.br /Default: codetags/nowiki{{/nowikiCurrentVersionnowiki}}/nowiki/code (the latest stable version of WordPress)
    • codetrunk/code -- trunk is the latest bleeding edge development version of WordPress.

Usage

Link to the stable version: preTemplate:BrowseSource/pre

Link to trunk: preTemplate:BrowseSource/pre

/div

wordpress.org.cn

div class=template-description style=padding: 0 1.5em; border: 1px solid #eeeeee; background-color: #f9f9f9

Template Description

Link to the source code on http://core.trac.wordpress.org/browser/.

Parameters

  1. filename
  2. (option) path to tag (version) or trunk. This option is only used for a new function.br /Default: codetags/nowiki{{/nowikiCurrentVersionnowiki}}/nowiki/code (the latest stable version of WordPress)
    • codetrunk/code -- trunk is the latest bleeding edge development version of WordPress.

Usage

Link to the stable version: preTemplate:BrowseSource/pre

Link to trunk: preTemplate:BrowseSource/pre

/div

wordpress.org.cn

div class=template-description style=padding: 0 1.5em; border: 1px solid #eeeeee; background-color: #f9f9f9

Template Description

Link to the source code on http://core.trac.wordpress.org/browser/.

Parameters

  1. filename
  2. (option) path to tag (version) or trunk. This option is only used for a new function.br /Default: codetags/nowiki{{/nowikiCurrentVersionnowiki}}/nowiki/code (the latest stable version of WordPress)
    • codetrunk/code -- trunk is the latest bleeding edge development version of WordPress.

Usage

Link to the stable version: preTemplate:BrowseSource/pre

Link to trunk: preTemplate:BrowseSource/pre

/div

wordpress.org.cn

div class=template-description style=padding: 0 1.5em; border: 1px solid #eeeeee; background-color: #f9f9f9

Template Description

Link to the source code on http://core.trac.wordpress.org/browser/.

Parameters

  1. filename
  2. (option) path to tag (version) or trunk. This option is only used for a new function.br /Default: codetags/nowiki{{/nowikiCurrentVersionnowiki}}/nowiki/code (the latest stable version of WordPress)
    • codetrunk/code -- trunk is the latest bleeding edge development version of WordPress.

Usage

Link to the stable version: preTemplate:BrowseSource/pre

Link to trunk: preTemplate:BrowseSource/pre

/div

wordpress.org.cn

div class=template-description style=padding: 0 1.5em; border: 1px solid #eeeeee; background-color: #f9f9f9

Template Description

Link to the source code on http://core.trac.wordpress.org/browser/.

Parameters

  1. filename
  2. (option) path to tag (version) or trunk. This option is only used for a new function.br /Default: codetags/nowiki{{/nowikiCurrentVersionnowiki}}/nowiki/code (the latest stable version of WordPress)
    • codetrunk/code -- trunk is the latest bleeding edge development version of WordPress.

Usage

Link to the stable version: preTemplate:BrowseSource/pre

Link to trunk: preTemplate:BrowseSource/pre

/div

wordpress.org.cn --

trunk (the latest development code):

div class=template-description style=padding: 0 1.5em; border: 1px solid #eeeeee; background-color: #f9f9f9

Template Description

Link to the source code on http://core.trac.wordpress.org/browser/.

Parameters

  1. filename
  2. (option) path to tag (version) or trunk. This option is only used for a new function.br /Default: codetags/nowiki{{/nowikiCurrentVersionnowiki}}/nowiki/code (the latest stable version of WordPress)
    • codetrunk/code -- trunk is the latest bleeding edge development version of WordPress.

Usage

Link to the stable version: preTemplate:BrowseSource/pre

Link to trunk: preTemplate:BrowseSource/pre

/div

wordpress.org.cn

div class=template-description style=padding: 0 1.5em; border: 1px solid #eeeeee; background-color: #f9f9f9

Template Description

Link to the source code on http://core.trac.wordpress.org/browser/.

Parameters

  1. filename
  2. (option) path to tag (version) or trunk. This option is only used for a new function.br /Default: codetags/nowiki{{/nowikiCurrentVersionnowiki}}/nowiki/code (the latest stable version of WordPress)
    • codetrunk/code -- trunk is the latest bleeding edge development version of WordPress.

Usage

Link to the stable version: preTemplate:BrowseSource/pre

Link to trunk: preTemplate:BrowseSource/pre

/div

wordpress.org.cn

div class=template-description style=padding: 0 1.5em; border: 1px solid #eeeeee; background-color: #f9f9f9

Template Description

Link to the source code on http://core.trac.wordpress.org/browser/.

Parameters

  1. filename
  2. (option) path to tag (version) or trunk. This option is only used for a new function.br /Default: codetags/nowiki{{/nowikiCurrentVersionnowiki}}/nowiki/code (the latest stable version of WordPress)
    • codetrunk/code -- trunk is the latest bleeding edge development version of WordPress.

Usage

Link to the stable version: preTemplate:BrowseSource/pre

Link to trunk: preTemplate:BrowseSource/pre

/div

wordpress.org.cn

div class=template-description style=padding: 0 1.5em; border: 1px solid #eeeeee; background-color: #f9f9f9

Template Description

Link to the source code on http://core.trac.wordpress.org/browser/.

Parameters

  1. filename
  2. (option) path to tag (version) or trunk. This option is only used for a new function.br /Default: codetags/nowiki{{/nowikiCurrentVersionnowiki}}/nowiki/code (the latest stable version of WordPress)
    • codetrunk/code -- trunk is the latest bleeding edge development version of WordPress.

Usage

Link to the stable version: preTemplate:BrowseSource/pre

Link to trunk: preTemplate:BrowseSource/pre

/div

wordpress.org.cn

div class=template-description style=padding: 0 1.5em; border: 1px solid #eeeeee; background-color: #f9f9f9

Template Description

Link to the source code on http://core.trac.wordpress.org/browser/.

Parameters

  1. filename
  2. (option) path to tag (version) or trunk. This option is only used for a new function.br /Default: codetags/nowiki{{/nowikiCurrentVersionnowiki}}/nowiki/code (the latest stable version of WordPress)
    • codetrunk/code -- trunk is the latest bleeding edge development version of WordPress.

Usage

Link to the stable version: preTemplate:BrowseSource/pre

Link to trunk: preTemplate:BrowseSource/pre

/div

wordpress.org.cn

div class=template-description style=padding: 0 1.5em; border: 1px solid #eeeeee; background-color: #f9f9f9

Template Description

Link to the source code on http://core.trac.wordpress.org/browser/.

Parameters

  1. filename
  2. (option) path to tag (version) or trunk. This option is only used for a new function.br /Default: codetags/nowiki{{/nowikiCurrentVersionnowiki}}/nowiki/code (the latest stable version of WordPress)
    • codetrunk/code -- trunk is the latest bleeding edge development version of WordPress.

Usage

Link to the stable version: preTemplate:BrowseSource/pre

Link to trunk: preTemplate:BrowseSource/pre

/div

wordpress.org.cn

div class=template-description style=padding: 0 1.5em; border: 1px solid #eeeeee; background-color: #f9f9f9

Template Description

Link to the source code on http://core.trac.wordpress.org/browser/.

Parameters

  1. filename
  2. (option) path to tag (version) or trunk. This option is only used for a new function.br /Default: codetags/nowiki{{/nowikiCurrentVersionnowiki}}/nowiki/code (the latest stable version of WordPress)
    • codetrunk/code -- trunk is the latest bleeding edge development version of WordPress.

Usage

Link to the stable version: preTemplate:BrowseSource/pre

Link to trunk: preTemplate:BrowseSource/pre

/div

wordpress.org.cn

div class=template-description style=padding: 0 1.5em; border: 1px solid #eeeeee; background-color: #f9f9f9

Template Description

Link to the source code on http://core.trac.wordpress.org/browser/.

Parameters

  1. filename
  2. (option) path to tag (version) or trunk. This option is only used for a new function.br /Default: codetags/nowiki{{/nowikiCurrentVersionnowiki}}/nowiki/code (the latest stable version of WordPress)
    • codetrunk/code -- trunk is the latest bleeding edge development version of WordPress.

Usage

Link to the stable version: preTemplate:BrowseSource/pre

Link to trunk: preTemplate:BrowseSource/pre

/div

wordpress.org.cn

div class=template-description style=padding: 0 1.5em; border: 1px solid #eeeeee; background-color: #f9f9f9

Template Description

Link to the source code on http://core.trac.wordpress.org/browser/.

Parameters

  1. filename
  2. (option) path to tag (version) or trunk. This option is only used for a new function.br /Default: codetags/nowiki{{/nowikiCurrentVersionnowiki}}/nowiki/code (the latest stable version of WordPress)
    • codetrunk/code -- trunk is the latest bleeding edge development version of WordPress.

Usage

Link to the stable version: preTemplate:BrowseSource/pre

Link to trunk: preTemplate:BrowseSource/pre

/div

wordpress.org.cn

External Resources

wordpress