Here is the working solution:
if(have_posts()): while(have_posts()):the_post(); ?> <article class="post"> <a href="<?php the_permalink(); ?>"> <h2> <?php the_title(); ?> </h2> </a> // Here is how you display author link <small> By: <a href="<?php echo get_author_posts_url(get_the_author_meta('ID')); ?>"> <?php the_author() ?> </a> </small> <p> <?php the_content(); ?> </p> </article> <?php endwhile; else : echo "No Posts Found"; endif;