[wordpress插件] Adjacent Archive Links相邻存档链接

wordpress 插件 文章 2020-02-02 02:20 823 0 全屏看文

AI助手支持GPT4.0

评分

100

100

描述

After activating the plugin, you will have two new template tags at your disposal:

激活插件后,您将可以使用两个新的模板标签:

  <?php previous_archive_link('format','link'); 

?>

?>

<?php next_archive_link('format','link');

?>

?>

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 link

The format parameter defines what comes before and after the link.

format 参数定义链接前后的内容。

In it, %link

其中,%link

will be replaced with whatever is declared in the link parameter below.

将被以下链接参数中声明的内容取代。

previous_archive_link

previous_archive_link

defaults to “«

默认为“ &laquo;

%link” and next_archive_link defaults to “%link »“.

%link ”和 next_archive_link 默认为“ %link&raquo; ”。

The link parameter defines the link text.

link 参数定义链接文本。

Both tags default to “%date“, the

这两个标签默认为“ %date ”,

adjacent archive page’s localized date.

相邻存档页面的本地化日期。

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

安装步骤

    1. Extract the zip file, drop the contents in your wp-content/plugins/ directory, and then activate from the Plugins page.
    2. 解压缩zip文件,将内容拖放到wp-content / plugins /目录中,然后从“插件”页面激活。

    3. Edit your theme file (e.g. archive.php) and add the template tags

    4. 编辑您的主题文件(例如archive.php)并添加模板标签。 <?php previous_archive_link();

      ?> and

      ?> <?php next_archive_link();

      ?>

    5. ?>

下载地址

https://downloads.wordpress.org/plugin/adjacent-archive-links.zip

https://downloads.wordpress.org/plugin/adjacent-archive-links.zip

-EOF-

AI助手支持GPT4.0


国内超级便宜服务器

摸鱼人热门新闻聚合

钻级赞助商 我要加入

开发者在线工具

第三方支付技术请加QQ群

相关文章
[wordpress插件] 2State Widget2状态小部件
[wordpress插件] Animation Hover Box动画悬停框
[wordpress插件] Ajax Login/RegisterAjax登录/注册
[wordpress插件] Sendy &#8211; API IntegrationSendy – API集成
[wordpress插件] Anti-Spam Zapper for WordPressWordPress的反垃圾邮件Zapper
随便看看
教育科技公司申请微信支付被拒绝? 4799
微信公众号免300认证教程 5892
小程序已经上线,作为管理员无法在小程序数据助手查看数据? 5299
小程序广告组件通过审核,但是小程序内没有显示广告? 5067
企业微信通讯录账号被管理员误/恶意删除,怎么办? 9568
问题? 9048
如何快速搭建抽奖助手小程序(无需代码知识) 6177
许涛 大哥在吗, 要解冻小程序的时候提示信息主体不一致, 能帮忙看下吗? 7472
小程序搜一搜全称搜索不显示 麻烦解决一下!谢谢 6793
我的小程序广告收款主体是个体工商户,每个月邮寄两次发票很是麻烦,我年底的时候打包邮寄一次可以么? 6128