title: Adding author info outside the loop in Genesis
body: <p>I'm posting this question as I'm having a little trouble adding the author info to my post hero on my website.</p>
  
  <p>I'm using the Genesis framework with Wordpress, so what I did is removing the post info from the post and adding it back in the post hero. That all works, except that the author name is not being shown anymore as it's not yet fetched in the post loop.</p>
  
  <pre><code>    // Remove entry title
      remove_action( 'genesis_entry_header', 'genesis_do_post_title' );
      // Remove post info
      remove_action( 'genesis_entry_header', 'genesis_post_info', 12 );
      // Add page title
      add_action( 'hero-info', 'genesis_do_post_title' );
      // Add page info
      add_action( 'hero-info', 'genesis_post_info', 12 );
  </code></pre>
  
  <p>To be able to add the post author info back in the post hero, I've looked up stackoverflow and found a link where the OP was able to fix it by creating a shortcode for it and running it in the hero-info</p>
  
  <pre><code>function author_shortcode() {
      global $post;
      $author_id=$post-&gt;post_author;
      the_author_meta( 'display_name', $author_id );
  }
  add_shortcode('author', 'author_shortcode');
  </code></pre>
  
  <p>This shortcode [author] is then added into</p>
  
  <pre><code>add_filter( 'genesis_post_info', 'custom_post_info' );
  function custom_post_info( $post_info ) {
      if ( is_archive() || is_home() ) {
          $post_info = __( 'Article by [author] [post_author_posts_link] on [post_date] - [post_comments zero="Leave a Comment" one="1 Comment" more="% Comments" hide_if_off="disabled"]', 'tcguy' );
          return $post_info;
      }
  }
  </code></pre>
  
  <p>This is the result now: <a href="http://imgur.com/a/6lX5J" rel="nofollow noreferrer">http://imgur.com/a/6lX5J</a>
  It is shown in the wrong place for some reason. Anybody knows how this can be?</p>
  
  <p>The site can be found here: <a href="http://websforlocals.com/business/" rel="nofollow noreferrer">http://websforlocals.com/business/</a></p>
  
  <p>Hope I gave enough info, and that someone with the same problem can be helped out.</p>