2013-06-23 67 views
0

我試着通過將<?php the_excerpt(); ?>更改爲<?php the_content(); ?>來改變博客頁面以顯示整篇文章而不是摘錄。我在index.php文件和page-blog.php文件中進行了更改。wordpress博文中的奇怪格式

看起來不錯,直到我滾動到第三個名爲「粉筆畫」的帖子。應該位於帖子最底部並與作者,日期和評論信息相對應的欄位恰好位於帖子中間的視頻右下方。下一篇文章的標題也在那裏。

這是因爲這是在錯誤的地方吧的代碼:

<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/

+0

更多代碼,您需要列出帖子。 – vikingmaster

+0

我剛更新了說明。讓我知道如果我應該把更多。 – user1761865

+0

redreggae的答案修復它! – designtocode

回答

2

這是因爲浮動的。嘗試在頁腳之前添加一個與clear:both的div。

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


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

將它添加到index.php文件中,它像一個魅力一樣工作。謝謝你的幫助! – user1761865