WordPress XML格式文章发表日期标签:the_date_xml
WordPress模板标签the_date_xml输出XML格式的文章发表日期,一般用得比较少。 the_date_xml() 该函数没有参数,直接调用即可。 函数使用示例<p>Date posted: <?php the_date_xml(); ?></p> 扩展阅读the_date_xml()函数位于:wp-includes/general-template.php …
WordPress模板标签the_date_xml输出XML格式的文章发表日期,一般用得比较少。 the_date_xml() 该函数没有参数,直接调用即可。 函数使用示例<p>Date posted: <?php the_date_xml(); ?></p> 扩展阅读the_date_xml()函数位于:wp-includes/general-template.php …
WordPress模板标签the_date输出当前文章的发表日期,需要用在The Loop主循环中。 the_date( string $d = '', string $before = '', string $after = '', boolean $echo = true ) 函数参数$d 字符串值,默认值:WordPress选项中设置的值 …
WordPress模板标签the_time输出当前文章的发表时间,需要用在The Loop主循环中。 the_time( string $d = '' ) 函数参数$d 字符串值,默认为WordPress后台常规设置中的时间格式 时间格式 函数使用示例<p>文章发表时间: <?php the_time('g:i a'); ?></p> 扩展阅读the_time()函数位于:wp-includes/general-template.php …
WordPress模板标签next_comments_link输出下一页评论链接,用于在评论模板中制作翻页导航。 next_comments_link( string $label = '', integer $max_page = 0 ) 函数参数$label 字符串值,默认值:Newer Comments » 链接的锚文本 …
WordPress模板标签cancel_comment_reply_link输出一个取消评论回复的链接,通常用在自定义评论模板中。 cancel_comment_reply_link( string $text = '' ) 函数参数$text 字符串值,默认值:Click here to cancel reply …
WordPress模板标签comment_reply_link用于输出评论回复链接,通常用在自定义评论模板中。 comment_reply_link( array $args = array(), integer $comment = null, integer $post = null ) 函数参数$args数组,默认值如下: $defaults = array( 'add_below' => 'comment', 'respond_id' => 'respond', 'reply_text' => __( 'Reply' ), /* translators: Comment reply button text. 1: Comment author name */ 'reply_to_text' => __( 'Reply to %s' ), 'login_text' => __( 'Log in to Reply' ), 'max_depth' => 0, 'depth' => 0, 'before' => '', 'after' => '' ); $args参数可用的值如下: …
WordPress模板标签permalink_comments_rss用于输出RSS格式的评论链接,该函数已经废弃,不建议再使用。 permalink_comments_rss() 函数使用示例<link><?php permalink_comments_rss(); ?></link> 扩展阅读permalink_comments_rss()函数位于:wp-includes/comment-template.php …
WordPress模板标签comment_link_rss用于输出RSS格式的评论链接,该函数没有任何参数,并且需要注意comment_link_rss函数已经被废弃了,建议不要再使用。 …
WordPress模板标签comment_text_rss用于输出RSS格式的评论内容,通常在自定义评论模板中,该函数没有任何参数。 comment_text_rss(); 函数使用示例<description><?php comment_text_rss() ?></description> 扩展阅读comment_text_rss()函数位于:wp-includes/comment-template.php …
WordPress模板标签comment_author_rss用于输出RSS格式的评论作者名称,该函数没有参数。 comment_author_rss() 函数使用示例<title>comment by: <?php comment_author_rss() ?></title> 扩展阅读comment_author_rss()函数位于:wp-includes/comment-template.php …