WordPress日历标签:get_calendar
WordPress模板标签get_calendar用于输出日历,如果某天有发表文章,点击该日期可以到达该日期归档页面。 get_calendar( boolean $initial = true, boolean $echo = true ) 函数参数$initial 布尔值,默认值:true …
WordPress模板标签get_calendar用于输出日历,如果某天有发表文章,点击该日期可以到达该日期归档页面。 get_calendar( boolean $initial = true, boolean $echo = true ) 函数参数$initial 布尔值,默认值:true …
虽然七牛云存储也提供免费SSL证书申请,但我喜欢用腾讯云申请的免费SSL证书,正准备在七牛上传,弹出的界面却让我傻了眼,如下图所示: 腾讯免费SSL证书提供了不同服务器环境的版本,有Apache、Nginx、IIS等,其中Apache是三个文件: …
WordPress模板标签get_year_link用来生成年份归档页链接,年份参数必须传递,否则输出当前年份链接并报错。 get_year_link( integer $year ) 函数参数$year 整数型,默认为空 指定年份 函数使用示例<a href="<?php echo get_year_link( $archive_year ); ?>"><?php the_time('Y'); ?> archive</a> 扩展阅读get_year_link()函数位于:wp-includes/link-template.php …
WordPress模板标签get_month_link用来生成月份归档页链接,需要注意这个函数的两个参数都必须传递,否则会输出当前月份的链接并报错。 get_month_link( integer $year, integer $month) 函数参数$year 整数型,默认为空 …
WordPress模板标签get_day_link用来生成日期归档页链接,需要注意这个函数的三个参数都必须传递,否则会输出当前日期的链接并报错。 get_day_link( integer $year, integer $month, integer $day) 函数参数$year 整数型,默认为空 …
WordPress模板标签get_the_time获取当前文章的发表时间,与the_time()函数的区别在于get_the_time()函数只返回获取到的值,而the_time()函数直接输出结果。该函数需要用在The Loop主循环中。 …
WordPress模板标签single_month_title仅在月份归档页输出年月标题,即使年份归档页也不会输出任何内容。 single_month_title( string $prefix = '', boolean $display = true ) 函数参数$prefix 字符串值,默认为空 在输出的月份归档标题内容前输出 …
WordPress模板标签the_modified_author输出文章的最后修改作者名称,需要用在The Loop主循环里。 the_modified_author() 该函数没有参数,直接调用即可。 函数使用示例<p>文章最后由 <?php the_modified_author(); ?> 修改</p> 扩展阅读the_modified_author()函数位于:wp-includes/author-template.php …
WordPress模板标签the_modified_date输出文章最后修改日期,需要用在The Loop主循环里。 the_modified_date( string $d = '', string $before = '', string $after = '', boolean $echo = true ) 函数参数$d 字符串值,默认值:WordPress后台选项中设置的日期格式 …
WordPress模板标签the_modified_time输出文章修改时间,需要用在The Loop主循环里。 the_modified_time( string $d = '') 函数参数$d 字符串值,默认值:WordPress后台选项中设置的日期格式 …