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

在文章的加上修改的連結,
方便看到有錯誤時立即可點下連結,去後台更新。

以FabThemes的Selene Template為例,
在 1 外觀–> 2 主題編輯器–> 3 修改single.php

<div>
		<span> Posted by <?php the_author(); ?></span>
		<span> On <?php the_time('j / n / Y'); ?></span>
		<span> <?php edit_post_link('[Edit]'); ?></span>
</div>

然後改為:

<div class="hmeta">
		<span class="author"> Posted by <?php the_author(); ?></span>
		<span class="clock"> On <?php the_time('j / n / Y'); ?></span>
		<span class="clock"> <?php edit_post_link('[Edit]'); ?></span>
</div>

重點是加上<?php edit_post_link(‘[Edit]’); ?> ,
修正前:

修正後:

如不想用出現[edit]也可按需要修改:

<?php edit_post_link(‘XXX‘); ?> , XXX 為需要顯示之字樣。

相關文章

You must be logged in to post a comment.