bloginfo

SJY发表于:2013年04月13日 00:00 • 阅读:

显示你站点的信息,主要收集来自你用户配置文件和常规设置,WordPress管理屏幕,他能在模板的任何地方使用,他总是直接输出,如果你需要在PHP中使用值,则用?get_bloginfo()

用法

<?php?bloginfo(?$show?);??>

常用

admin_email          = admin@example.com
atom_url             = http://www.example.com/home/feed/atom
charset              = UTF-8
comments_atom_url    = http://www.example.com/home/comments/feed/atom
comments_rss2_url    = http://www.example.com/home/comments/feed
description          = Just another WordPress blog
home                 = http://www.example.com/home (DEPRECATED! use url option instead)
html_type            = text/html
language             = en-US
name                 = Testpilot
pingback_url         = http://www.example.com/home/wp/xmlrpc.php
rdf_url              = http://www.example.com/home/feed/rdf
rss2_url             = http://www.example.com/home/feed
rss_url              = http://www.example.com/home/feed/rss
siteurl              = http://www.example.com/home (DEPRECATED! use url option instead)
stylesheet_directory = http://www.example.com/home/wp/wp-content/themes/largo
stylesheet_url       = http://www.example.com/home/wp/wp-content/themes/largo/style.css
template_directory   = http://www.example.com/home/wp/wp-content/themes/largo
template_url         = http://www.example.com/home/wp/wp-content/themes/largo
text_direction       = ltr
url                  = http://www.example.com/home
version              = 3.5
wpurl                = http://www.example.com/home/wp

其中bloginfo(‘url’) = 首页地址; bloginfo(‘wpurl’) = wordpress安装路径;

官方?bloginfo

欢迎转载,但请保留原文地址 http://www.sjyhome.com/wordpress/bloginfo.html

标签: 路径

上一篇:

下一篇:

回复(0)