WIKI使用導(dǎo)航
站長(zhǎng)百科導(dǎo)航
站長(zhǎng)專題
- 網(wǎng)站推廣
- 網(wǎng)站程序
- 網(wǎng)站賺錢
- 虛擬主機(jī)
- cPanel
- 網(wǎng)址導(dǎo)航專題
- 云計(jì)算
- 微博營(yíng)銷
- 虛擬主機(jī)管理系統(tǒng)
- 開放平臺(tái)
- WIKI程序與應(yīng)用
- 美國(guó)十大主機(jī)
WordPress:WPMU Functions/get current site
This page is [[WordPress::Category:Stubs|marked]] as incomplete. You can help Codex by expanding it.
Returns the following items:
This page is [[WordPress::Category:Stubs|marked]] as incomplete. You can help Codex by expanding it.
返回下面的內(nèi)容:
id domain path site_name
id domain path site_name
Usage[ ]
用法[ ]
To get the blog id, you would use the following code:
你需要使用下面的代碼,得到博客id:
$current_site = get_current_site(); echo $current_site->id;
$current_site = get_current_site();
echo $current_site->id;
Or, to do the same, but in only one line:
或者只在一行中,執(zhí)行同樣的操作:
echo get_current_site()->id;
echo get_current_site()->id;
Other[ ]
其它的[ ]
The function as found in footer.php of most Wordpress themes:
函數(shù)在WordPress大多數(shù)主題的footer.php中:
<?php $current_site = get_current_site(); ?>
<?php $current_site = get_current_site(); ?>
Need content to help solve the following PHP fatal error:
需要內(nèi)容幫助解決下面的PHP嚴(yán)重錯(cuò)誤:
Fatal error: Call to undefined function get_current_site() in /blah/www.mysite.com/wp-content/themes/blah/footer.php on line 2
嚴(yán)重錯(cuò)誤:調(diào)用/blah/www.mysite.com/wp-content/themes/blah/footer.php第二行中的未定義的函數(shù)