View Single Post
Old 11-22-2010, 01:21 PM  
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,513
Quote:
Originally Posted by Si View Post
Ok it definately works. but wouldn't work with a php include unless I done it wrong.

Here is what i tried below:

<?php
wp_reset_query();
if (is_home() ) {
echo '<?php include "/include.html"; ?>';
}
?>

Unless I have to put the full file location in there. will try that now.
Code:
<?php if ( is_home() ) : ?>
<?php include (TEMPLATEPATH . '/include.html'); ?>
<?php endif ; ?>
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


My Cam Feeds Script / Free Templates / Gallery Scraper
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote