WIKI使用導(dǎo)航
站長百科導(dǎo)航
站長專題
- 網(wǎng)站推廣
- 網(wǎng)站程序
- 網(wǎng)站賺錢
- 虛擬主機(jī)
- cPanel
- 網(wǎng)址導(dǎo)航專題
- 云計(jì)算
- 微博營銷
- 虛擬主機(jī)管理系統(tǒng)
- 開放平臺
- WIKI程序與應(yīng)用
- 美國十大主機(jī)
WordPress:Template Tags/link pages
來自站長百科
This function has been deprecated. That means it has been replaced by a new function or is no longer supported, and may be removed from future versions. All code that uses this function should be converted to use its replacement if one exists.
描述[ ]
為標(biāo)了頁數(shù)的文章顯示網(wǎng)頁鏈接(例如,包括the <!--nextpage-->
Quicktag一次或者幾次)。這與wp_link_pages()的運(yùn)行方式基本相同,標(biāo)簽必須在The_Loop內(nèi)部。
取代[ ]
用法[ ]
%%% <?php link_pages('before', 'after', 'next_or_number',
'nextpagelink', 'previouspagelink', 'pagelink', 'more_file'); ?> %%%
例子[ ]
默認(rèn)用法[ ]
默認(rèn)顯示網(wǎng)頁鏈接,網(wǎng)頁鏈接的前后都有行分隔符,使用上一頁 和下一頁,并將這些網(wǎng)頁標(biāo)號為第 1頁,第 2頁等等。
<?php link_pages(); ?>
段落標(biāo)簽中的網(wǎng)頁鏈接[ ]
顯示由段落標(biāo)簽包圍的網(wǎng)頁鏈接。
<?php link_pages('<p>', '</p>', 'number', '', '', 'page %'); ?>
參數(shù)[ ]
- before
- (string) 所有的鏈接之前放置的文本。默認(rèn)為'<br />'。
- after
- (string) 所有的鏈接之后放置的文本。默認(rèn)為'<br />'。
- next_or_number
- (string) 暗示是否會用到網(wǎng)頁頁碼。有效的參數(shù)值是:
- 'number' (Default)
- 'next'(在 WordPress 1.5 或者以后的版本中有效)
- nextpagelink
- (string) 鏈接到下一個網(wǎng)頁的文本 。默認(rèn)為'下一個網(wǎng)頁'。(在WordPress1.5及以后的版本中有效)
- previouspagelink
- (string)鏈接到上一個網(wǎng)頁的文本。默認(rèn)為上一個網(wǎng)頁。(在WordPress1.5及以后的版本中有效)
- pagelink
- (string) 網(wǎng)頁頁碼的格式字符串。字符串中的'%'會被數(shù)字取代,因此'Page %'會產(chǎn)生"第1頁", "第2頁",等等。默認(rèn)為'%'。
- more_file
- (string)鏈接指向的而網(wǎng)頁。默認(rèn)為當(dāng)前網(wǎng)頁。
相關(guān)的[ ]
要使用字符串來傳遞參數(shù),請看看wp_link_pages()