title: Only display items on front page (Wordpress)
body: <p>Sorry for the awful title, I couldn't think of anything better.</p>
  
  <p>Basically I have this code:</p>
  
  <pre><code>&lt;div id="slideshow-side-tab"&gt;
      &lt;img src="&lt;?php bloginfo('template_directory'); ?&gt;/images/bg-slideshow.png"/&gt;
          &lt;div id="slideshow"&gt;
              &lt;img src="&lt;?php bloginfo('template_directory'); ?&gt;/images/slideshow/image-1.jpg" alt="" class="active" /&gt;
              &lt;img src="&lt;?php bloginfo('template_directory'); ?&gt;/images/slideshow/image-2.jpg" alt="" /&gt;
              &lt;img src="&lt;?php bloginfo('template_directory'); ?&gt;/images/slideshow/image-3.jpg" alt="" /&gt;
              &lt;img src="&lt;?php bloginfo('template_directory'); ?&gt;/images/slideshow/image-4.jpg" alt="" /&gt;
          &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>However I only want this to display when the user is on the front page of Wordpress. The homepage has been set to a static page created from within wordpress and I can't just copy this code into the page as it only accepts HTML in the page editor. How can I make this happen?</p>
  
  <p>I have had a look on Wordpress and I found this:</p>
  
  <pre><code>&lt;?php
  if (is_home()) {
      // This is a homepage
  } else {
      // This is not a homepage
  }
  ?&gt;
  </code></pre>
  
  <p>But that doesn't seem to work if I place my code in place of the '// This is a homepage'.</p>
  
  <p>Any help would be appreciated. Thanks.</p>