為您的佈景主題增添「文章標籤」
使用方法
將以下的函式增添到 single.php 的文章迴圈中,然後依您所需看是否要於「之前」或「之後」來增添字串。
<?php the_tags('before', 'separator', 'after'); ?>
- before – 標籤最前面的自訂字串。
- separator – 標籤與標籤之間的分隔字元,其預設的話是逗號(, )。
- after – 標籤最後面的自訂字串。
例如:
<?php the_tags( 'Tags:', '、', ''); ?>
例如:
<?php the_tags('Tagged with: ',' • ','<br />'); ?>
也可視您所需,於這個函式的前面與後面加上 XHTML 標籤,例如:
<p><?php the_tags( 'Tags:', '、', ''); ?></p>




