title: Add a Wordpress post grid (latest posts) by author to a custom post type
body: <p>I have created a custom post type called Professionals.  I am using the Divi Theme Builder to display each professional with their own dynamic content (using advanced custom fields).  At the bottom of each professional's page, I would like to add a divi blog module showing 3 of their most recent blog posts. Here's what I have so far - but nothing is showing on the page.</p>
  <pre class="lang-php prettyprint-override"><code>function add_author_recent_posts() {
      $author = get_the_author(); // defines your author ID if it is on the post in question
      $args = array(
                   'post_type' =&gt; 'professionals',
                   'post_status' =&gt; 'publish',
                   'author'=&gt;$author,
                   'posts_per_page' =&gt; 3, // the number of posts you'd like to show
                   'orderby' =&gt; 'date',
                   'order' =&gt; 'DESC'
                   );
       $results = new WP_Query($args);
      while ($results-&gt;have_posts()) {
        $results-&gt;the_post();
        the_title();
        echo '&lt;/hr&gt;'; // puts a horizontal line between results if necessary 
      }
  }
  add_action( 'init', 'add_author_recent_posts' );
  </code></pre>