title: Display author with link (WordPress)
body: <p>I'm trying to display my latest 3 blog posts on my website homepage. I've got everything so far (Content, Image and Date). However it's not allowing me to display the authors name with link so that people can click on the author and see what their latest posts have been. Does anybody know why this is happening?</p>
  
  <p><strong>My code so far:</strong> </p>
  
  <pre><code>&lt;div class="col-sm-6"&gt;
  &lt;?php   
       $args = array( 'numberposts' =&gt; 2, 'offset' =&gt; 1, 'post_status'=&gt;"publish",'post_type'=&gt;"post",'orderby'=&gt;"post_date");
       $postslist = get_posts( $args );
       foreach ($postslist as $post) :  setup_postdata($post); 
  ?&gt;
  &lt;div class="blog-post blog-media wow fadeInRight" data-wow-duration="300ms" data-wow-delay="100ms"&gt;
     &lt;article class="media clearfix"&gt;
        &lt;div class="entry-thumbnail pull-left"&gt;
           &lt;div class="img-responsive smallBlogImage"&gt;&lt;?php getTheFirstImage(); ?&gt;&lt;/div&gt;
               &lt;span class="post-format post-format-gallery"&gt;&lt;img class="blogIconSmall" src="IsosecWeb/images/IsosecIcon.png"&gt;&lt;/span&gt;
           &lt;/div&gt;
           &lt;div class="media-body"&gt;
           &lt;header class="entry-header"&gt;
              &lt;div class="entry-date"&gt;&lt;?php the_date(); ?&gt;&lt;/div&gt;
              &lt;h2 class="entry-title"&gt;&lt;a href="&lt;?php the_permalink(); ?&gt;"&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/h2&gt;
           &lt;/header&gt;
  
           &lt;div class="entry-content"&gt;
              &lt;p&gt;&lt;?php echo wp_trim_words(preg_replace("/\&lt; *[img][^\&gt;]*[.]*\&gt;/i","", get_the_content(), 80), 20); ?&gt;&lt;/p&gt;
              &lt;a class="btn btn-primary" href="&lt;?php the_permalink(); ?&gt;"&gt;Read More&lt;/a&gt;
           &lt;/div&gt;
  
           &lt;footer class="entry-meta"&gt;
               &lt;span class="entry-author"&gt;&lt;i class="fa fa-pencil"&gt;&lt;/i&gt; &lt;?php echo the_author_posts_link(); ?&gt; &lt;/span&gt;
           &lt;/footer&gt;
        &lt;/div&gt;
     &lt;/article&gt;
  &lt;/div&gt;
  &lt;?php  endforeach;  ?&gt; 
  &lt;/div&gt;
  </code></pre>