WordPress: Template Tags/previous posts link:修订间差异

来自站长百科
跳转至: 导航、​ 搜索
无编辑摘要
无编辑摘要
第1行: 第1行:
== Description ==
== 描述 ==
== 描述 ==
This creates a link to the next posts. Yes, it says "previous posts," but it's named that just to confuse you.
这个标签创建一个链接,链接到下一篇文章。对,显示"上一篇文章,"但是那样命名只会使你糊涂。
这个标签创建一个链接,链接到下一篇文章。对,显示"上一篇文章,"但是那样命名只会使你糊涂。
== Usage ==


== 用法 ==
== 用法 ==


%%% <?php previous_posts_link('Label', 'Max number of pages (default 0)'); ?> %%%
%%% <?php previous_posts_link('Label', 'Max number of pages (default 0)'); ?> %%%
%%% <?php previous_posts_link('Label', 'Max number of pages (default 0)'); ?> %%%
== Examples  ==
===Default Usage===


== 例子==
== 例子==
第20行: 第10行:


==默认用法 ==
==默认用法 ==
===Working example===


===Working 例子===
===Working 例子===
<?php previous_posts_link('&laquo; Previous Entries', '0') ?>


<?php previous_posts_link('&laquo; Previous Entries', '0') ?>
<?php previous_posts_link('&laquo; Previous Entries', '0') ?>
== Parameters ==


== 参数==
== 参数==

2008年7月16日 (三) 11:37的版本

描述

这个标签创建一个链接,链接到下一篇文章。对,显示"上一篇文章,"但是那样命名只会使你糊涂。

用法

%%% <?php previous_posts_link('Label', 'Max number of pages (default 0)'); ?> %%%

例子

默认用法

Working 例子

<?php previous_posts_link('« Previous Entries', '0') ?>

参数

:在WordPress2.2中,很显然,要删除多个类别,使用逗号连接这些类别的,而不是用;例如:'1, 5, 15'。仍然没有默认值。 -->

Related

相关的

See also next_posts_link() and previous_post_link().

也看看next_posts_link()previous_post_link()

模板:PHP Function Tag Footer

This page is [[WordPress::Category:Stubs|marked]] as incomplete. You can help Codex by expanding it.

模板:PHP函数标签 页底文字

This page is [[WordPress::Category:Stubs|marked]] as incomplete. You can help Codex by expanding it.