title: Wordpress ajax loop refresh on click
body: <p>I display a random post loop on a page. I'd like to put a "refresh" link to refresh the content of the loop via ajax.</p>
  
  <p>Is this possible?</p>
  
  <p>This is my loop: </p>
  
  <pre><code>            &lt;ul id="content-inner" class="thumb-grid clearfix"&gt;
              &lt;?php query_posts('posts_per_page=20&amp;orderby=rand'); ?&gt;
              &lt;?php if (have_posts()) : while (have_posts()) : the_post(); ?&gt;
                  &lt;li&gt;
                      &lt;a href="&lt;?php the_permalink(); ?&gt;"&gt;
                          &lt;img src="&lt;?php echo $my_image_url = get('thumbnail'); ?&gt;" alt="" /&gt;
                          &lt;span class="title"&gt;&lt;?php the_title(); ?&gt;&lt;/span&gt;
                          &lt;span class="feat"&gt;&lt;?php $articletags = strip_tags(get_the_tag_list('',', ',''));echo $articletags;?&gt;&lt;/span&gt;
                      &lt;/a&gt;
                  &lt;/li&gt;
              &lt;?php endwhile;?&gt;
              &lt;?php endif; ?&gt;
              &lt;?php wp_reset_query(); ?&gt;
              &lt;/ul&gt;
  </code></pre>
  
  <p>Thanks</p>