回复时总是把文章显示两遍,怎么回事?
完全相同的内容显示了两遍,用wordpress classic模板也是一样。代码应该没错啊。
<?php get_header(); ?>
<div id="bloque">
<div id="noticias">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<h2 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_ID(); ?></a> <?php the_title(); ?></h2>
<?php the_content("Continue reading ".the_title('', '', false)."..."); ?>
<?php link_pages('<p><strong>Pages:</strong> ', '</p>', 'number'); ?>
<div class="feedback">
<?php the_time('F j, Y'); ?> | In <?php the_category(', ') ?> | <?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?> <?php edit_post_link('Edit', ' — ', ''); ?>
</div>
<!--
<?php trackback_rdf(); ?>
-->
<?php comments_template(); // Get wp-comments.php template ?>
<?php endwhile; else: ?>
<h2 class="center">Not Found</h2>
<p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
<?php endif; ?>
<div id="pagination">
<?php posts_nav_link(' — ', __('« Previous Page'), __('Next Page »')); ?>
</div>
</div>
</div>
<?php get_footer(); ?>
哪位高手给分析一下什么原因?
主机好象从php4升级到php5了。就这些变化。