title: the_author is empty when not logged in
body: <p>Is there a reason why the_author should return an empty string on the first page when the user is not logged in, but return the author name just as it should when more posts are loaded through AJAX ?
  The loop is the same in both cases.
  Please help me resolve this issue as I'm clueless and I need it fixed ASAP to launch my site.</p>
  
  <p>Here's the whole index.php:</p>
  
  <pre><code>&lt;?php 
  
  get_header();
  get_sidebar();
  
  ?&gt;
  &lt;!-- MAIN DIV --&gt;
  
              &lt;div id='content_and_floater'&gt;
  
                  &lt;?php get_template_part('social_floater'); ?&gt;
                  &lt;div id='content'&gt;
                      &lt;?php get_template_part('loop'); ?&gt;
                  &lt;/div&gt;
  
              &lt;/div&gt;
  
              &lt;?php get_template_part('loader'); ?&gt;
  
  &lt;!-- MAIN DIV --&gt;
  &lt;?php
  get_footer();
  ?&gt;
  </code></pre>
  
  <p>And here's how the infinitePaginator calls the loop in functions.php (the function is called when scrolled down to the bottom or the loader link is clicked):</p>
  
  <pre><code>function wp_infinitepaginate(){
      $loopFile        = $_POST['loop_file'];
      $paged           = $_POST['page_no'];
      $posts_per_page  = get_option('posts_per_page');  
  
      # Load the posts
      query_posts(array('paged' =&gt; $paged ));
      get_template_part( $loopFile );  
  
      exit;
  }
  </code></pre>
  
  <p>You can see the behaviour at test.nowillnoskill.net.
  In single posts it's not working either. My guess is that query_posts(array('paged' => $paged )); changed something in the query, but I don't know what is it.
  I tried to insert setup_postdata($post); just after the_post() in loop.php as I found that worked for someone, but it doesn't for me.</p>
  
  <p>I also tried to insert</p>
  
  <pre><code>query_posts(array('paged' =&gt; 1 ));
  </code></pre>
  
  <p>before calling the loop file in index.php, but no posts at all were shown.</p>
  
  <p>Here is my loop.php:</p>
  
  <pre><code>&lt;?php while ( have_posts() ) : the_post() ?&gt;    
              &lt;!-- POST1 --&gt;
              &lt;article class='post'&gt;  
                  &lt;header class='post_header'&gt;
  
                      &lt;?php
                          global $current_user;
                          $current_user = wp_get_current_user();
                          if (!empty($current_user)) {
                              $pid = get_the_id();
                              $uid = $current_user-&gt;ID;
  
                              $title = (is_favorite($pid, $uid)) ?
                                  'Remove from favorites' :
                                  'Add to favorites';
  
                              $trans = (is_favorite($pid, $uid)) ?
                                  '' :
                                  ' transparent';
  
                      ?&gt;
  
                      &lt;div&gt;
                          &lt;h2&gt;
                              &lt;a href="&lt;?php the_permalink(); ?&gt;"&gt;
                                  &lt;?php the_title(); ?&gt;
                              &lt;/a&gt;
                          &lt;/h2&gt;
  
                          &lt;?php if (is_user_logged_in()) { ?&gt;
                          &lt;a title='&lt;?php echo $title ?&gt;' class='post_favorite' href='#' alt='fpid=&lt;?php echo $pid ?&gt;uid=&lt;?php echo $uid ?&gt;'&gt;
                              &lt;span class='symbol&lt;?php echo $trans ?&gt;'&gt;R&lt;/span&gt; 
                          &lt;/a&gt;
                          &lt;?php } ?&gt;
  
                      &lt;/div&gt;
  
                      &lt;div class='post_header_div'&gt;
  
                          &lt;strong class='post_category'&gt;
                              &lt;?php echo get_the_category_list(', '); ?&gt;
                          &lt;/strong&gt;
  
                          &lt;strong class='post_author'&gt;
                              &lt;span class='symbol'&gt;U&lt;/span&gt;
                                  &lt;?php the_author(); ?&gt;
                          &lt;/strong&gt;
  
                      &lt;/div&gt;
  
                      &lt;div&gt;
  
                          &lt;span class='post_author'&gt;
                              &lt;?php edit_post_link('[edit]'); ?&gt;                          
                          &lt;/span&gt;
  
                      &lt;/div&gt;
  
                      &lt;?php } ?&gt;
  
                  &lt;/header&gt;
  
                  &lt;figure class='post_image'&gt;
                      &lt;!--&lt;img src='design/img/flashkick.png' alt='logo' /&gt;--&gt;
                      &lt;?php the_post_thumbnail(); ?&gt;
                  &lt;/figure&gt;
  
                  &lt;div class='post_perex'&gt;
                      &lt;?php the_content('Read more'); ?&gt;
                  &lt;/div&gt;
  
                  &lt;div class='space'&gt;&lt;/div&gt;
  
                  &lt;footer class='post_footer'&gt;
  
                      &lt;div class='post_footer_top'&gt;
  
                          &lt;div class='post_tags'&gt;
                              &lt;?php the_tags('', '', ''); ?&gt;
                          &lt;/div&gt;
  
                          &lt;div class='post_time'&gt;
                              &lt;time datetime="&lt;?php the_time('Y-m-d'); ?&gt;" pubdate&gt;
                                  &lt;span class='symbol'&gt;P &lt;/span&gt;
                                      &lt;?php relative_post_the_date(); ?&gt;
                              &lt;/time&gt;
  
                          &lt;/div&gt;
  
                      &lt;/div&gt;
  
                  &lt;/footer&gt;
  
                  &lt;div class='space'&gt;&lt;/div&gt;
  
              &lt;/article&gt;
  
              &lt;?php endwhile; ?&gt;
  </code></pre>