img src= ?php include TEMPLATEPATH… gets big mess
-
This works:
<?php include(TEMPLATEPATH.’/content.php’); ?>This produces a ton of gobbledygook on the webpage:
<img src=”<?php include(TEMPLATEPATH.’/images/hr.gif’); ?>” />So does this:
<?php include(TEMPLATEPATH.’/images/hr.gif’); ?>What can I do besides entering the full https://… url?
This seems to work sometimes, I think:
<?php include(‘wp-content/themes/mytheme/images/hr.gif’); ?>This seems to work sometimes, I think:
<?php include(‘images/hr.gif’); ?>
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘img src= ?php include TEMPLATEPATH… gets big mess’ is closed to new replies.