title: Wordpress calling an HTML file from PHP
body: <p>I am trying to modify a theme on wordpress. The theme shows a slider on the front page, which reads from the featured.php file.</p>
  
  <p>I have gone into the featured.php and removed all the PHP code. I can inject my custom HTML into the featured.php and the pages display properly, however I want the page to display from a wordpress page.</p>
  
  <p>So i tried to:
  <code>&lt;?php
  $html = file_get_contents('http://www.mydomain.com/homepage-featured');
  ?&gt;</code></p>
  
  <p>The above link corresponds to a page i created in wordpress. So i want to be able to inject my HTML into that page and then when you load my homepage, the PHP tells the browser to display the contents of this URL.</p>
  
  <p>The above code doesn't work. </p>
  
  <p>Thanks for the help.</p>