title: Get the Post meta wordpress
body: <p>If </p>
  
  <pre><code>&lt;?php the_title(); ?&gt; = ' . get_the_title() . '
  &lt;?php the_permalink(); ?&gt; = ' . get_permalink() . '
  </code></pre>
  
  <p>then, </p>
  
  <pre><code>&lt;?php echo get_post_meta($post-&gt;ID, 'staff_photo', true); ?&gt; = ?
  </code></pre>
  
  <p>I need it in a custom query.</p>