私はWordpressの開発にかなり慣れていません。私はこのコードを単一のページに使用しており、無限ループで最新の投稿のみを出力しています。同じ投稿が何度も呼び出されると、ページはどんどん長くなります。すべての投稿を順番に表示するにはどうすればよいですか?
<?php
/*
* Template Name: Portfolio
*/
?>
<?php include 'header.php'; ?>
<div id="content">
<div id="content_inner">
<!--start the loop -->
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<!--get posts-->
<?php query_posts('cat=uncategorized') ?>
<!--display the content-->
<?php the_content(); ?>
<!--end the loop-->
<?php endwhile; else: ?>
<p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
<?php endif; ?>
</div>
</div>
<?php include 'footer.php'; ?>
</div> <!--end allwrap-->