WordPress生成年份归档页链接标签:get_year_link

WordPress模板标签get_year_link用来生成年份归档页链接,年份参数必须传递,否则输出当前年份链接并报错。 get_year_link( integer $year ) 函数参数$year 整数型,默认为空 指定年份 函数使用 …

WordPress生成月份归档页链接标签:get_month_link

WordPress模板标签get_month_link用来生成月份归档页链接,需要注意这个函数的两个参数都必须传递,否则会输出当前月份的链接并报错。 get_month_link( integer $year, integer $month) 函数参数$year 整数 …

WordPress生成日期归档页链接标签:get_day_link

WordPress模板标签get_day_link用来生成日期归档页链接,需要注意这个函数的三个参数都必须传递,否则会输出当前日期的链接并报错。 get_day_link( integer $year, integer $month, integer $day) 函数参数$year 整数 …

WordPress获取文章发表时间标签:get_the_time

WordPress模板标签get_the_time获取当前文章的发表时间,与the_time()函数的区别在于get_the_time()函数只返回获取到的值,而the_time( …

WordPress月份归档页标题标签:single_month_title

WordPress模板标签single_month_title仅在月份归档页输出年月标题,即使年份归档页也不会输出任何内容。 single_month_title( string $prefix = '', boolean $display = true ) 函数参数$prefix 字符串值,默认 …

WordPress文章修改作者标签:the_modified_author

WordPress模板标签the_modified_author输出文章的最后修改作者名称,需要用在The Loop主循环里。 the_modified_author() 该函数没有参数,直接调用即可。 函数使用示例<p& …

WordPress文章修改日期标签:the_modified_date

WordPress模板标签the_modified_date输出文章最后修改日期,需要用在The Loop主循环里。 the_modified_date( string $d = '', string $before = '', string $after = '', boolean $echo = true ) 函数参数$d 字符串值,默认值: …

WordPress文章修改时间标签:the_modified_time

WordPress模板标签the_modified_time输出文章修改时间,需要用在The Loop主循环里。 the_modified_time( string $d = '') 函数参数$d 字符串值,默认值:WordPress后台选项中设 …

WordPress XML格式文章发表日期标签:the_date_xml

WordPress模板标签the_date_xml输出XML格式的文章发表日期,一般用得比较少。 the_date_xml() 该函数没有参数,直接调用即可。 函数使用示例<p>Date posted: <?php the_date_xml(); ?></p> 扩展阅 …

WordPress文章发表日期标签:the_date

WordPress模板标签the_date输出当前文章的发表日期,需要用在The Loop主循环中。 the_date( string $d = '', string $before = '', string $after = '', boolean $echo = true ) 函数参数$d 字符串值,默认值:WordPres …