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