Conditional Tags Include


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <?php
  2. if ( is_front_page() ) { include (TEMPLATEPATH . '/home1.php'); }
  3. else { include (TEMPLATEPATH . '/rest.php'); }
  4. ?>
  5.  
  6. is_home(), is_category(), is_archive(), is_search(), is_single(), is_date(), is_404(), etc...

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.