0
我想讓標籤在WordPress的帖子上顯示,就在內容的下面。每當對singles.php所做的更改時,爲什麼我的頁腳會移到側邊欄上?
我的原代碼(剛剛結束的部分):
<div class="clearfix"></div>
<div class="entry">
<?php the_content(); ?>
<p style="text-align : center; font-size : 13px;">Views presented in the article are those of the author and not of ED.</p>
</div>
<div class="clearfix"></div>
<?php endwhile; ?>
<?php endif; ?>
</div>
</div>
我修改後的代碼:
<div class="clearfix"></div>
<div class="entry">
<?php the_content(); ?>
<p>
<?php $posttags=get_the_tags(); if ($posttags) { foreach($posttags as $tag) { echo $tag->name . ' '; } } ?>
</p>
<p style="text-align : center; font-size : 13px;">Views presented in the article are those of the author and not of ED.</p>
</div>
<div class="clearfix"></div>
<?php endwhile; ?>
<?php endif; ?>
</div>
</div>
我打算這樣做:
製作標籤出現在內容下方。
發生了什麼事:
的標籤從未露面。 (即使在清空緩存之後;即使他們這樣做了,他們也會出錯 - 這是另一個問題。)
頁腳切換到側邊欄。
如何避免頁腳進入側欄?
這是一個錯誤的問題。抱歉。不是我的實際代碼。改變它。 – Mana