title: Live view in Dreamweaver only works for site root on WordPress site
body: <p>I am trying to set up DreamWeaver CS6 to show live previews of a locally-stored WordPress site so I can edit template parts and see what they'll look like. I used this tutorial to set it up: <a href="https://www.adobe.com/devnet/dreamweaver/articles/dw_wordpress_pt2.html" rel="nofollow">https://www.adobe.com/devnet/dreamweaver/articles/dw_wordpress_pt2.html</a></p>
  
  <p>-The WordPress site is running on localhost (WAMP) just fine.<br />
  -Permalink structure is set to default<br />
  -Site and test server are set up in DreamWeaver<br />
  -I get a working preview in live mode IF I load the root index.php (not the theme's index.php)</p>
  
  <p>The problem is that if I load any individual theme parts, the live preview will return an undefined function error. So the parser seems to be running, but DreamWeaver isn't loading all the necessary requisite files.</p>
  
  <p>Edit: The error below is exactly what you would see if you tried to directly load a theme part in a browser. So I guess my question is, does DreamWeaver have the ability to do what I want? I want to edit individual theme parts while seeing what effect the changes will have in a live preview.</p>
  
  <p>Here's what I get when do live preview for page.php:</p>
  
  <pre><code>( ! ) Fatal error: Call to undefined function get_header() in C:\wamp\www\mysite\wp-content\themes\mytheme\page.php on line 14
  </code></pre>
  
  <p>Call Stack</p>
  
  <pre><code>#   Time    Memory  Function    Location
  1   0.0004  249000  {main}( )   ..\page.php:0
  </code></pre>