"is_single" include a templatepath
-
Hi, I am working on a theme that has no single.php but rather a loop.php. I wanted to add a floating ad so to do that I use the code
<?php include(TEMPLATEPATH . ‘/ads.php’) ; ?>But this code shows up even on homepage, so I wanted to show it only in “is_single.” I am not a PHP guy so please help me with this.
Thanks a lot.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘"is_single" include a templatepath’ is closed to new replies.