wordpress博客文章的奇怪格式


Strange formatting on wordpress blog post

我尝试通过将<?php the_excerpt(); ?>更改为<?php the_content(); ?>来更改博客页面以显示完整的帖子而不是摘录。我对index.php文件和page-blog.php文件进行了更改。

看起来不错,直到我向下滚动到第三个帖子"Chalk it Up"。应该在帖子最底部的栏中显示作者、日期和评论信息,而不是在帖子中间的视频下面。下一篇文章的标题也在那里。

这是位于错误位置的条形码:

<footer class="entry-meta">
<?php theretailer_posted_on(); ?>
<?php if ( ! post_password_required() && ( comments_open() || '0' != get_comments_number() ) ) : ?>
<span class="sep"> | </span>
<span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'theretailer' ), __( '1 Comment', 'theretailer' ), __( '% Comments', 'theretailer' ) ); ?></span>
<?php endif; ?>
<?php edit_post_link( __( 'Edit', 'theretailer' ), '<span class="sep"> | </span><span class="edit-link">', '</span>' ); ?>
</footer><!-- .entry-meta -->  

有人对如何修复它有什么建议吗?

http://glitterriot.com/blog/

这是因为浮动。尝试在页脚前添加一个带有clear:both的div。

/* in css */
.clear {
    clear: both;
    height: 0px;
}

<div class="clear"></div>
<footer class="entry-meta">
....