Php wordpress循环添加垃圾

Php wordpress循环添加垃圾,php,wordpress,loops,while-loop,Php,Wordpress,Loops,While Loop,我对Wordpress中的循环有一个问题-代码被添加到循环中并被重复 代码如下: <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <?php get_template_part( 'partials/loop', 'page' ); ?> <?php $the_query = new WP_Query( 'showposts=3' ); ?> <?php while (

我对Wordpress中的循环有一个问题-代码被添加到循环中并被重复

代码如下:

<?php if (have_posts()) : while (have_posts()) : the_post(); ?>

<?php get_template_part( 'partials/loop', 'page' ); ?>

<?php $the_query = new WP_Query( 'showposts=3' ); ?>

<?php while ($the_query -> have_posts()) : $the_query -> the_post(); ?>
<?php the_post_thumbnail( array(100,100) );?>

<h4><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h4>
<?php echo strip_tags(get_the_excerpt()) ?> 

<?php endwhile; else : ?>

<?php get_template_part( 'partials/content', 'missing' ); ?>

<?php endif; ?> 

输出:

<img width="100" height="100" src="http://blahblah/glasses-150x150.png" class="attachment-100x100 wp-post-image" alt="glasses">
<h4><a href="http://blahblah/titleofpost/">Title of Post</a></h4>
The Excerpt of the post, blah blah blah  Read more » 

&nbsp;&nbsp;&nbsp;&nbsp

这篇文章的摘录,诸如此类,诸如此类,阅读更多»
 
我不知道该怎么办;最后的代码来自-感谢您的帮助:)


是否来自循环中的每个帖子


否则,我认为你应该在你的文章编辑管理面板中仔细检查你的html标签。tinyMCE插件通常会在你点击enter键开始另一行时添加一些
(不间断空格字符)。

你有任何插件试图在文章底部添加内容吗?看起来这可能是一个插件问题。尝试禁用它们,看看它是否消失。