WordPress: Template Tags/comments link:修订间差异
(新页面: == Description == Displays the URL to a post's comments. This tag must be within WordPress:The Loop, or the loop set up for comments. == Usage == ...) |
无编辑摘要 |
||
第1行: | 第1行: | ||
== Description == | == Description == | ||
== 描述== | |||
Displays the [[WordPress:Glossary#URI and URL|URL]] to a post's comments. This tag must be within [[WordPress:The Loop]], or the loop set up for comments. | Displays the [[WordPress:Glossary#URI and URL|URL]] to a post's comments. This tag must be within [[WordPress:The Loop]], or the loop set up for comments. | ||
显示文章评论的[[WordPress:Glossary#URI and URL|URL]]。必须在[[WordPress:The Loop|The Loop]]内部或者为评论设置的loop内使用这个标签。 | |||
== Usage == | == Usage == | ||
== 用法 == | |||
%%% <?php comments_link(); ?> %%% | |||
%%% <?php comments_link(); ?> %%% | %%% <?php comments_link(); ?> %%% | ||
== Example == | == Example == | ||
== 例子 == | |||
<a href="<?php comments_link(); ?>"> | <a href="<?php comments_link(); ?>"> | ||
Comments to this post | |||
</a> | |||
<a href="<?php comments_link(); ?>"> | |||
Comments to this post | Comments to this post | ||
</a> | </a> | ||
== Parameters == | == Parameters == | ||
== 参数 == | |||
This tag has no parameters. | This tag has no parameters. | ||
这个标签没有参数。 | |||
== Related == | == Related == | ||
第22行: | 第39行: | ||
{{PHP Function Tag Footer}} | {{PHP Function Tag Footer}} | ||
==相关的== | |||
{{标签 评论 标签}} | |||
{{PHP函数 标签 页底文字}} |
2008年7月1日 (二) 16:23的版本
Description
描述
Displays the URL to a post's comments. This tag must be within WordPress:The Loop, or the loop set up for comments.
显示文章评论的URL。必须在The Loop内部或者为评论设置的loop内使用这个标签。
Usage
用法
%%% <?php comments_link(); ?> %%%
%%% <?php comments_link(); ?> %%%
Example
例子
<a href="<?php comments_link(); ?>"> Comments to this post </a>
<a href="<?php comments_link(); ?>">
Comments to this post </a>
Parameters
参数
This tag has no parameters. 这个标签没有参数。
Related
相关的
comments_number, comments_link, comments_rss_link, comments_popup_script, comments_popup_link, comment_ID, comment_author, comment_author_IP, comment_author_email, comment_author_url, comment_author_email_link, comment_author_url_link, comment_author_link, comment_type, comment_text, comment_excerpt, comment_date, comment_time, comments_rss_link, comment_author_rss, comment_text_rss, comment_link_rss, permalink_comments_rss