<?php previous_archive_link('format','link'); ?>
?>
<?php next_archive_link('format','link');
?>
?>
code> pre>
They adapt their output depending on whether the date archive is a day, a month,
它们根据日期归档是一天,一个月还是
来调整输出。
or a year, and they will only output a link for an adjacent time period in which you
或一年,并且它们只会输出您在相邻时间段内的链接
have published posts.
发表了帖子。
Both tags take two string parameters, format and link.
这两个标记都带有两个字符串参数,即 format em>和 link em>。 p>The format parameter defines what comes before and after the link.
format em>参数定义链接前后的内容。In it, %link
其中,%link code>
will be replaced with whatever is declared in the link parameter below.
将被以下链接参数中声明的内容取代。
previous_archive_link
previous_archive_link code>
defaults to “«默认为“ &laquo; %link
” and next_archive_link
defaults to “%link »
“.
%link code>”和 next_archive_link code>默认为“ %link&raquo; code>”。 p>The link parameter defines the link text.
link em>参数定义链接文本。Both tags default to “%date
“, the
这两个标签默认为“ %date code>”,
adjacent archive page’s localized date.
相邻存档页面的本地化日期。 p>
If you’re interested in contributing to the code behind this plugin, it’s also hosted on GitHub:
如果您有兴趣为该插件背后的代码做贡献,那么它也托管在GitHub上:
https://github.com/justincwatt/wp-adjacent-archive-links
https://github.com/justincwatt/wp-adjacent-archive-links p>