WordPress模板标签get_year_link用来生成年份归档页链接,年份参数必须传递,否则输出当前年份链接并报错。
get_year_link( integer $year )
函数参数
$year
整数型,默认为空
指定年份
函数使用示例
<a href=""> archive
扩展阅读
get_year_link()函数位于:wp-includes/link-template.php
相关函数:
- get_the_date()
- get_the_time()
- the_date()
- the_modified_date()
- get_the_modified_date()
- the_modified_time()
- get_the_modified_time()
- the_time()
原创文章,作者:,如若转载,请注明出处:https://ce.771633.xyz/1576.html