我已经将WordPress瞬态系统与w3 total cache集成。现在我无法对此查询进行分页。
<?php
$paged1 = (get_query_var(\'paged1\')) ? get_query_var(\'paged1\') : 1;
$recent1 = get_transient( \'recent1\' );
if ( false === $recent1) {
$recent1 = new WP_Query (\'cat=3&posts_per_page=5\'.\'&paged=\'.$paged1);
set_transient(\'recent1\', $recent1, 60*60);
}
// do normal loop stuff
if ($recent1->have_posts()) : while ($recent1->have_posts()) : $recent1->the_post();
?>
<div id="line">
<a href="<?php the_permalink () ?>" rel="bookmark">
<h2><?php the_title (); ?></h2>
<?php the_post_thumbnail(array(100,100), array(\'class\' => \'alignleft\')); ?>
<?php the_advanced_excerpt(); ?>
</a>
</div>
<?php endwhile; ?>
<?php endif; ?>
<?php wp_reset_query(); ?>