title: WordPress: Query post by title and author
body: <p>I'm trying to create a custom request on a WordPress website to find a post by it's title and author (the match can be case insensitive, but has to be an exact match).</p>
  
  <p>Up to now, I found how to <a href="https://tommcfarlin.com/get-post-content-by-title/" rel="nofollow">get a post by it's title</a> even though you can't seem to add parameters such as the author, and this leads to security issues as well.</p>
  
  <p>I also looked into the <a href="https://gist.github.com/luetkemj/2023628" rel="nofollow">WP_Query parameters here</a> but there doesn't seem to be a post_title parameter. We can still perform a search by author though.</p>
  
  <p>I couldn't find an example to query only the posts matching the author and title I'm looking for.</p>
  
  <p>Does anyone know how to create such a query?
  I wrote this code but can't get the result I expect because 'post_title' just doesn't exist, and 'name' searches for the slug:</p>
  
  <pre><code>$args = array(
      'post_title'    =&gt; $title
      'author'        =&gt; $WP_user-&gt;id
  );
  
  $my_query = new WP_Query($args);
  
  if ( $my_query-&gt;have_posts() ) {
      //DO STUFF HERE
  }
  </code></pre>