I'm presently creating a 'bulky' Wordpress theme, attempting to use <?php include(); ?> to reduce how big the core files.

I attempted wrapping it in a number of different elements without any alternation in result.

HTML

<div id="wrap">
    <?php include('blah.php');?>
</div>

blah.php

<div class="blah-wrap">
    <p>The content</p>
</div>

gives HTML Output:

<div id="wrap">
 "
 "
<div class="blah-wrap">
    <p>The Content</p>
</div>
</div>

Individuals quotes appear no matter this content of blah.php, or where blah.php is incorporated. I would not normally care, yet it's adding an area above where I range from the file - about 1em - that is playing using the design.

It is possible to reason it's acting just like a &nbsp; exists and wrapping it within the quotes? Or whatever it might be, my html structure is ideal, it's no problem.

Presuming the blah.php file is really a custom template file that you simply wanna use in your theme, no matter if the dwelling content from the file is dynamically produced in the Wordpress system (publish loop) or hard coded in to the file you ought to be by using this rather:

<?php include(TEMPLATEPATH . '/blah.php');?>

I are in position to be remedied, however i highly suspect the reason the quotes are showing up happens because using <?php include('blah.php');?> implies that there's no path defined for Wordpress to know or grab. Despite the fact that the file might be loaded in, Wordpress could just be attempting to resolve the road to the file but canrrrt do so, this provides you with an creation of the quotes without a penny inside it. The TEMPLATEPATH is Wordpress function and usually contain the Hyperlink to your template directory (e.g. http://www.yourdomain.com/wp-content/themes/template-folder).