Warning: Illegal string offset 'output_key' in /home/taoworks/public_html/wp-includes/nav-menu.php on line 604

Warning: Illegal string offset 'output_key' in /home/taoworks/public_html/wp-includes/nav-menu.php on line 604

Warning: Illegal string offset 'output_key' in /home/taoworks/public_html/wp-includes/nav-menu.php on line 604

Warning: Illegal string offset 'output_key' in /home/taoworks/public_html/wp-includes/nav-menu.php on line 604

Warning: Illegal string offset 'output_key' in /home/taoworks/public_html/wp-includes/nav-menu.php on line 604

陶●工作室

站長指南-Web hosting及WordPress設定


Warning: Illegal string offset 'output_key' in /home/taoworks/public_html/wp-includes/nav-menu.php on line 604

Warning: Illegal string offset 'output_key' in /home/taoworks/public_html/wp-includes/nav-menu.php on line 604

Warning: Illegal string offset 'output_key' in /home/taoworks/public_html/wp-includes/nav-menu.php on line 604

Warning: Illegal string offset 'output_key' in /home/taoworks/public_html/wp-includes/nav-menu.php on line 604

Warning: Illegal string offset 'output_key' in /home/taoworks/public_html/wp-includes/nav-menu.php on line 604
Posted by 陶 On 13 / 11 / 2011
有的template 在post並不帶有Tag,
感覺便像是欠了什麼。

如要加上tag只要是改一下程式:
以FabThemes的Selene Template為例,
在 1 外觀–> 2 主題編輯器–> 3 修改signle.php

<div class="postmeta">
	<span class="categorys">Categories: <?php the_category(', '); ?> </span>
</div>

改為

<div class="postmeta">
	<span class="categorys">Categories: <?php the_category(', '); ?> </span>
	<span class="categorys">Tag: <?php the_tags(' '); ?> </span>
</div>


看… Tag 加了在Categories 之後了。

而重點的code 是 <?php the_tags(‘ ‘); ?> ,
放在那位置,便按個人喜好了。

相關文章

You must be logged in to post a comment.