wordpress模板开发 | 文章元数据及多语言化(5)
掌握的方法
_e() 获取翻译并输出打印
__() 获取翻译,返回值
the_category() 获取当前文章所属的分类
the_author() 获取文章的作者
the_time() 获取文章的发布时间
edit_post_link() 如果登录,显示编辑链接,便于修改文章
the_category(','); ?> the_author(); ?> the_time("Y-m-d H:i:s"); ?> edit_post_link('edit','|','||'); ?>
多语言
下载软件poedit https://poedit.net/
视频07
后续用到了,再整理
> 本文由子枫笔记快捷发布!
本站文章如未注明出处均为原创,转载请注明出处,如有侵权请邮件联系站长。