php require main-start php if is_home require main-home php if is_cate

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
<?php
require('main-start.php');
if ( is_home() ) require('main-home.php');
// if ( is_category() ) require('main-cat.php');
# elseif (is_author()) require('main-author.php');
# elseif ( is_attachment() ) require('main-attachment.php');
# elseif ( is_tag() ) require('main-tag.php');
# elseif ( is_archive() ) require('main-archive.php');
elseif (is_author()) require ('main-author.php');
elseif (is_archive()) require('main-archive.php');
elseif (is_search()) require('main-search.php');
else require('main.php');
require('main-end.php');
?>