1
我希望我的博客的標題在主頁上顯示爲一個內容,而在我的博客上顯示爲其他任何內容時的內容。Wordpress博客的網站標題/標題
此代碼是否正確?
<title>
<?php
if (is_home())
echo "Blog Title" //When on the homepage
else
echo ucwords(wp_title('',true)); //Name of blog article
echo ucwords(get_bloginfo('name')); //Followed by site name
?>
</title>
任何反饋意見。
它工作嗎? – Galen 2011-04-22 18:11:06
是的,是的。 – Blender 2011-04-22 18:13:59