title: can I run new WP_Query inside the Loop with no affects to the Loop? (wordpress)
body: <p>the bellow function is working fine but I need to run it inside the loop. If done so the post content is actually taken from the last post of my WP_Query. Not from the one that should appear.</p>
  
  <p>Is there any way to run my query and leave <strong>The Loop unaffected</strong>? </p>
  
  <pre><code>function recent_post_by_author() {
    echo '&lt;div class="recent_post_by_author"&gt;';
    $my_query = new WP_Query('author_name=Radek&amp;showposts=2');
    while ($my_query-&gt;have_posts()) : $my_query-&gt;the_post(); ?&gt;
    &lt;a href="&lt;?php the_permalink() ?&gt;" title="&lt;?php the_title(); ?&gt;"&gt; &lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;BR&gt;
    &lt;?php endwhile;
    echo '&lt;/div&gt;';
  }
  </code></pre>