我在页面上显示一个随机的post循环。我想放一个“刷新”链接,通过ajax刷新循环的内容。
这可能吗?
这是我的循环,如果有帮助:
<ul id="content-inner" class="thumb-grid clearfix">
<?php query_posts(\'posts_per_page=20&orderby=rand\'); ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<li>
<a href="<?php the_permalink(); ?>">
<img src="<?php echo $my_image_url = get(\'thumbnail\'); ?>" alt="" />
<span class="title"><?php the_title(); ?></span>
<span class="feat"><?php $articletags = strip_tags(get_the_tag_list(\'\',\', \',\'\'));echo $articletags;?></span>
</a>
</li>
<?php endwhile;?>
<?php endif; ?>
<?php wp_reset_query(); ?>
</ul>