1
在我的头文件,我使用WordPress的功能bloginfo
以下三次:WordPress的与HOME_URL替换代码bloginfo?
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<meta charset="<?php bloginfo('charset'); ?>" />
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo('stylesheet_url'); ?>" />
但主题检查插件给了我以下警告:
bloginfo(url) was found in the file header.php. Use echo home_url() instead.
有人能告诉我怎么能取代那个?我在Wordpress网站的功能参考资料中找不到任何信息。
是的,我知道,但它不会工作'回声HOME_URL(stylesheet_url );' – user1117313 2012-01-15 14:44:51
我说'替换代码bloginfo( 'URL')''不代码bloginfo( 'stylesheet_url')'。你必须在你的主题文件中有这个地方。 – ariefbayu 2012-01-15 16:47:29
@ user1117313 - 为有效'代码bloginfo()'参数见http://codex.wordpress.org/Function_Reference/bloginfo。 – Jared 2012-01-16 13:23:00