欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  后端开发

wordpress header.php资料的疑问

程序员文章站 2022-06-11 19:11:38
...
wordpress header.php文件的疑问。

在下php新手,在看wordpress代码时,对header文件始终不解(位置:wp-content/temes/twentyeleven/header.php)。
特来请教各位:
该文件代码中并include操作,其中如bloginfo(),wp_head()等外部函数如何可以调用?
此种开发模式如何实现?望各位能为在下讲解下,或提供资料,在下不甚感激。
PHP code
 section and everything up till 
* * @package WordPress * @subpackage Twenty_Eleven * @since Twenty Eleven 1.0 */?>> <?php /* * Print the <title> tag based on what is being viewed. */ global $page, $paged; wp_title( '|', true, 'right' ); // Add the blog name. bloginfo( 'name' ); // Add the blog description for the home/front page. $site_description = get_bloginfo( 'description', 'display' ); if ( $site_description && ( is_home() || is_front_page() ) ) echo " | $site_description"; // Add a page number if necessary: if ( $paged >= 2 || $page >= 2 ) echo ' | ' . sprintf( __( 'Page %s', 'twentyeleven' ), max( $paged, $page ) ); ?> * tag of your theme, or you will break many plugins, which * generally use this hook to add elements to such * as styles, scripts, and meta tags. */ wp_head();?>>

网友评论

文明上网理性发言,请遵守 新闻评论服务协议

我要评论
  • wordpress header.php资料的疑问
  • 专题推荐

    作者信息
    wordpress header.php资料的疑问

    认证0级讲师

    推荐视频教程
  • wordpress header.php资料的疑问javascript初级视频教程
  • wordpress header.php资料的疑问jquery 基础视频教程
  • 视频教程分类