<?php if ( is_single('8') ) { include( 'onecolumn-page.php' );} else { get_header(); ?> //is_single('8') 中的数字是文字ID 其实通过这样的判断可以为单篇文章设置各种各样的模板,只是个判断。理解意思就行。 上面的代码加在 single.php 文件中,在文件结尾加上 <?php } ?>
联系QQ:136 8888 63 Email:136888863#qq.com #换为@