我有以下代码,出于某种原因,它会导致无限循环。有人能解释一下发生了什么事吗?
谢谢
<?php
$flagged_stores = new WP_Query( array ( \'post_type\' => \'store\', \'orderby\' => \'post_id\', \'meta_key\' => \'flagged\', \'limit\' => 10 ) );
if($flagged_stores->have_posts()): ?>
<div class="table">
<table class="form-table">
<tr>
<th>Store</th>
<th>Flag Reason</th>
<th>Delete Flag</th>
</tr>
<?php while($flagged_stores->have_posts()): ?>
<td><?php echo the_title(); ?></td>
<td><?php// echo get_post_custom_values(\'flagged\'); ?></td>
<td><?php// echo "Delete"; ?></td>
<?php endwhile;?>
</table>
<?php else: ?>
No flags found.
<?php endif; ?>