title: Getting image alt text in Wordpress slider
body: <p>Our web site is using the theme's slider.php on our front page. I'd like for the images displayed in that slider to use the alt text that is in the post meta (edited in the WP media library).</p>
  
  <p>I've attempted to create a variable ($alt), and have that variable echoed when the img is called, but is coming up empty. Here's the relevant portion of slider.php:</p>
  
  <pre><code>$alt = get_post_meta($post-&gt;ID, '_wp_attachment_image_alt', true); 
  
  
  
  &lt;img src="&lt;?php echo $thumbnail[0]; ?&gt;" alt="&lt;?php echo $alt[0]; ?&gt;" /&gt;
      &lt;/a&gt;
  
  &lt;?php else: ?&gt;
  </code></pre>
  
  <p>`
  Any idea what I'm doing wrong?</p>