title: Actual file location of a WordPress featured image?
body: <p>I'm generating a query for certain posts in 'Trash'. I can retrieve the featured image URL, but I'm looking for a way to get the featured image file location on the server.</p>
  
  <pre><code># generate the query
  foreach ( $query as $post ) {
      $thumbID = get_post_thumbnail_id( $post-&gt;ID );
      $thumbObj = get_post( $thumbID );
      $source_url = $thumbObj-&gt;guid;
      # how do I get the string "/path/to/wordpress/media/library/thumbnail.jpg" ?
  }
  </code></pre>
  
  <p>I can't find any WordPress function that returns the actual featured image file location.</p>