久久精品水蜜桃av综合天堂,久久精品丝袜高跟鞋,精品国产肉丝袜久久,国产一区二区三区色噜噜,黑人video粗暴亚裔

WordPress:Template Tags/next post

來自站長百科
跳轉(zhuǎn)至: 導航、? 搜索

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.


描述[ ]

這個標簽用在一篇單一的文章/permalink網(wǎng)頁上,列出了在當前文章之后發(fā)表的下一篇文章。這個標簽可以與previous_post()標簽一起運行。必須在The Loop內(nèi)使用這個標簽。

對于索引,類別,和歸檔模板,請使用posts_nav_link()標簽。

取代[ ]

next_post_link()。

用法[ ]

%%% <?php next_post('format', 'next', 'title', 'in_same_cat',limitnext, excluded_category); ?> %%%

例子[ ]

默認用法[ ]

默認情況下,顯示文本"下一篇文章:"與文章標題一起作為鏈接。


<?php next_post(); ?>

將文本用作鏈接,不帶有文章標題[ ]

顯示規(guī)定的文本作為鏈接,不包括文章標題。如果過長的文章標題破壞了你的布局,你可能想試試這個。" 下一個 » "是這個例子中規(guī)定的文本;你可以放入你想要的任何文本。

%%% <?php next_post('%','Next »', 'no'); ?> %%%

使用特定的文本[ ]

顯示上一篇文章和下一篇文章的鏈接,將文本放在文本標題的前面,文章標題不作為鏈接。

Previous: Previous Post Title    |    Next: 下一篇文章標題
<p><?php previous_post('%', 'Previous:', 'no'); ?> 
| <?php next_post('%', 'Next:', 'no'); ?></p>

使用箭頭符號而不是文本[ ]

在前一篇文章鏈接的開頭和后一篇文章鏈接的結(jié)尾,顯示文本,像箭頭符號,這樣看起來像:

<?php previous_post('&laquo; &laquo; %', '', 'yes'); ?>
| <?php next_post('% &raquo; &raquo; ', '', 'yes'); ?>

參數(shù)[ ]

format
(string) 鏈接的格式字符串。字符串中的'%'會被鏈接所取代,這樣'Go to %'會產(chǎn)生"Go to <a href=..." 默認為'%'。
next
(string) 需要顯示的鏈接文本。默認為'下一篇文章: '。
title
(string) 顯示標題是否應該被用在鏈接文本。如果設置為'yes',立馬追隨下一個 (以上的)。選項有:
  • 'yes' (Default)
  • 'no'
in_same_cat
(string) 顯示下一篇文章鏈接是否必須與當前的文章鏈接在同一個類別中。參數(shù)在WordPress1.5.1.3版本及更高的版本中能夠運行。如果文章列在幾個類別中,會在母類別內(nèi)顯示文章,而不是在子類別內(nèi)。選項是:
  • 'yes'
  • 'no' (Default)
limitnext
(integer) 將下一篇文章鏈接設置到參數(shù)數(shù)值(當前文章ID加上limitnext)。默認為1。推薦默認設置。
excluded_category
(integer -or- string) 下一篇文章不應該列出的類別ID數(shù)字。用''分開多個類別;'1和 5 和15'。沒有默認設置。參數(shù)在WordPress1.5.2版本以及更高的版本上能夠運行。

相關的[ ]

也看看previous_post()。

the_ID, the_title, the_title_attribute, single_post_title, the_title_rss, the_content, the_content_rss, the_excerpt, the_excerpt_rss, previous_post_link, next_post_link, posts_nav_link, the_meta,