Typecho:作者、分类、评论等信息调用代码
作者信息
<?php $this->author() ?> //作者名称
<?php $this->author->permalink(); ?> //作者文章列表连接
<?php $this->author->url(); ?>
<?php $this->author('url'); ?> //作者主页
<?php $this->author->mail(); ?>
<?php $this->author('mail'); ?> //作者邮箱
<?php $this->author->gravatar(); ?> //作者头像
分类信息
<?php echo $this->category; ?> //分类缩略名
<?php $this->category(); ?> //带连接的分类名称
<?php $this->category(',', false); ?> //不带连接的分类名称
评论者信息
<?php $comments->author(); ?> //带连接的作者名
<?php $comments->author('', false); ?> //不带连接的作者名
版权声明:本文由 鹿泽笔记 原创发布。
本文链接:https://www.bailuze.com/19778.html
许可协议:本文标题《Typecho:作者、分类、评论等信息调用代码》,转载请注明文章出处及原始链接。
