title: Get WordPress Post ID from Post title
body: <p>I have an issue with a custom WordPress theme I'm developing. It's a bit convoluted, but essentially, what I need to do is get a Post Id by it's Post Title. In pseudo-code it would ideally be something like:</p>
  
  <pre><code>title = "foo";
  post_id = get_post_id_where_title_is(title);
  </code></pre>
  
  <p>The title mentioned is a static reference not being pulled in from WordPress, it's already present on the page.</p>
  
  <p>Thanks in advance.</p>