이 같은 WP의 2.9.something를 위해이 문제를 해결 한 번했습니다
을 그리고 네! 나도 알아 : 마크 업의 들여 쓰기가 엉망으로 보이지만,주의 깊게 본다면 이해할 수있다.)
이것은 WP 3.0.x에서 더 이상 테스트되지 않았지만 정확히 정확히 수행되었다. 네가 원했던 것. 그것이 당신을 위해 작동하는지 확인하고 무언가가 망가 졌는지 또는 이해가되지 않는지 언제든지 물어보십시오.
<?php if (have_posts()): ?>
<?php $year = 0; ?>
<?php $month = 0; ?>
<ul>
<?php while (have_posts()): the_post(); ?>
<?php $post_year = substr($post->post_date, 0, 4); ?>
<?php $post_month = substr($post->post_date, 5, 2); ?>
<?php if(($year != $post_year || $month != $post_month) && $year != 0): ?>
</ul>
</li>
<?php endif; ?>
<?php if ($year != $post_year || $month != $post_month): ?>
<li>
<strong><?php the_time('F Y') ?></strong>
<ul>
<?php endif; ?>
<li>
<span><?= mysql2date('j', $post->post_date) ?></span>
<?php the_title() ?>
</li>
<?php $year = $post_year; ?>
<?php $month = $post_month; ?>
<?php endwhile; ?>
</ul>
</li>
</ul>
<?php endif; ?>
이것은 아름답게 작동합니다! 내 3.0.4 설치 작동합니다. 고맙습니다. – roflwaffle
좋아요! 이 대답을 올바른 것으로 표시하는 것이 좋습니다. 건배. – polarblau