[wordpress插件] Date Pagination日期分页

wordpress 插件 文章 2020-04-13 01:00 543 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

This plugin provides an easy way to paginate posts by year, month or day in your theme’s template files.

此插件提供了一种简便的方法,可以按年,月或日对主题模板文件中的帖子进行分页。

Use the native WordPress pagination functions to display the pagination links.

使用本机 WordPress分页功能来显示分页链接。

It’s likely your theme is already using these functions for normal pagination.

您的主题可能已经在正常分页中使用了这些功能。

If not, see if it works with your theme’s pagination or add them yourself.

如果不是,请查看它是否可以与您的主题的分页一起使用,或者您可以自己添加它们。

To tell WordPress a page should be paginated by dates set the date_pagination_type query argument to yearly, monthly or daily

要告诉WordPress页面应按日期分页,请将 date_pagination_type 查询参数设置为每年每月每天

code> for a custom query (WP_Query), or in the WP_Query )或在

/codex.wordpress.org/Plugin_API/Action_Reference/pre_get_posts" rel="nofollow">pre_get_posts action.

/codex.wordpress.org/Plugin_API/Action_Reference/pre_get_posts“ rel =” nofollow“> pre_get_posts 操作。

See the plugin documentation for examples and more information on how to use this plugin in your

请参见插件文档,以获取示例以及有关如何在您的产品中使用此插件的信息。

theme.

主题。

Follow this plugin on GitHub

GitHub 上关注此插件

安装步骤

Follow these instructions to install the plugin.

按照以下说明安装插件。

    • Unzip the date-pagination.zip folder.
    • 解压缩 date-pagination.zip 文件夹。

    • Upload the date-pagination folder to your /wp-content/plugins directory.
    • date-pagination 文件夹上传到您的 / wp-content / plugins 目录。

    • Activate date-pagination through the ‘Plugins’ menu in WordPress.
    • 通过WordPress中的“插件”菜单

    • 激活日期分页

    • That’s it, now you are ready to use the plugin in your theme template files.
    • 就这样,现在您可以在主题模板文件中使用插件了。

下载地址
https://downloads.wordpress.org/plugin/date-pagination.zip
-EOF-

AI助手支持GPT4.0