调用后台添加的自定义字段 用以下方式来调用自定义字段,如果所有文章都包括自定义字段,则不用判断,直接调用:<?php $this->fields->fieldName(); ?> 如果有些文章没有调用自定义字段,则判断一下,用来调用: ...
单独输出tag链接地址 可以单独输出tag地址,需要修改funcations.php文件function tags($widget, $split = ',', $default = NULL) { if ($w ...
判断当前分类并自定义内容 <?php if($this->category == "help"): ?> //当前分类为help缩略图,则输出内容。 <?php endif; ?> 可应用于自定义分类,或者, ...