如何在文章页面调用后台设置的文章摘要?
时间:4年前 阅读:1824
如何在文章页面调用后台设置的
文章摘要?后台能设置
文章摘要,但是只能在首页显示摘要,而文章页面看不到。
5.3.0为例
在文件include/model/log_model.php中找到
'template' => $row['template'],
在后面添加
'excerpt' => $row['excerpt'],
然后就可以在echo_log.php调用<?php echo $excerpt;?>
网友评论