はじめまして。
ちょっと困ったことがおきているので質問させてください。
wordpressのテーマに関する知識がかなり薄いので初歩的な間違いなのかもしれませんが、
サイドバーのカテゴリ、アーカイブ、最新記事など、どのリンクを押しても、現在の最新記事が一番上に表示されてしまいます。
調査したところ、自作以外のテーマでは正常に表示されました。
おそらくコアではなく自作のテーマに何か不具合があるのだろうと思いますが、何が悪いのかまったく見当がつきません。
以下にindex.phpのコードを記載しますので、何かおかしい箇所がありましたらご指摘いただけますでしょうか。
ちなみに使用環境は以下です。
PHP5.3
wordpress2.8
Firefox3.5
どうぞよろしくお願いいたします。
index.php
<?php get_header(); ?>
<?php get_sidebar(); ?>
<!--左開始-->
<div id="content"class="narrowcolumn">
<!--ブログタイトル開始-->
<h2 class="ttlblog"><img src="<?php bloginfo('template_directory') ?>/images/blog/ttl_main.gif" alt="" /></h2>
<!--ブログタイトル終了-->
<!-- 記事開始 -->
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<!--記事タイトル開始-->
<div class="entrytitle">
<h3><?php the_title(); ?></h3>
</div>
<!--記事タイトル終了-->
<!--記事本文開始-->
<div class="entry">
<?php the_content('続きを読む »'); ?>
</div>
<!--記事本文終了-->
<!--記事データ開始-->
<div class="entrystate">
by <?php the_author_nickname(); ?> | <?php the_time('Y-m-d H:m:s') ?> | <?php the_category(', ') ?> |
</div>
<!-- 記事データ終了 -->
</div>
<!-- 記事終了 -->
<?php endwhile; ?>
<div class="navigation">
<div class="alignleft"><?php next_posts_link('« 前のページへ') ?></div>
<div class="alignright"><?php previous_posts_link('次のページへ »') ?></div>
</div>
<?php else : ?>
<h2 class="center">Not Found</h2>
<p class="center">Sorry, but you are looking for something that isn't here.</p>
<?php endif; ?>
</div>
<!-- 左終了 -->
<?php get_footer(); ?>