[wordpress插件] Custom Post Type Date Archives自定义帖子类型日期档案

wordpress 插件 文章 2020-04-09 05:30 457 0 全屏看文

AI助手支持GPT4.0

评分
100
描述

Add Date archives to custom post types right in the dashboard itself.

在仪表板本身中将日期归档添加到自定义帖子类型。

This plugin also provides widgets and editor blocks to display archives, calendars and recent posts.

该插件还提供了小部件和编辑器块,以显示档案,日历和最新帖子。

This allows you to use this plugin as a super simple events calendar.

这使您可以将此插件用作超级简单的事件日历。

Features:

功能

    • Adds a date archives submenu for each custom post type
    • 为每种自定义帖子类型添加日期归档子菜单

    • Adds the rewrite rules needed for viewing the date archives
    • 添加查看日期档案所需的重写规则

    • Adds widgets and editor blocks for archives, calendars and recent posts
    • 为档案,日历和最新帖子添加小部件和编辑器块

    • Allows you to publish scheduled posts with future dates like normal posts
    • 允许您发布具有常规日期等未来日期的预定帖子

    • Allows you to use specific theme templates files for cpt date archives
    • 允许您将特定的主题模板文件用于cpt日期存档

    • Adds WP Rest API endpoints for archives, calendar and recent posts
    • 为档案,日历和最新帖子添加WP Rest API端点

    Plugin Documentation

    插件文档

    WordPress doesn’t support date archives for custom post types out of the box.

    WordPress不支持开箱即用的自定义帖子类型的日期存档。

    This plugin adds the rewrite rules needed to view the date archives at a pretty permalink.

    此插件通过漂亮的永久链接添加了查看日期存档所需的重写规则。

    Example permalink (url) for a custom post type events date archive.

    自定义帖子类型事件日期档案的示例永久链接(url)。

    https://example.com/events/2015/06/12

      https://example.com/events/2015/06/12

    The calendar, archive and recent posts widget are similar to the existing WordPress widgets, but with extra (custom post type) options added.

    日历,存档和最近发布的窗口小部件与现有的WordPress窗口小部件相似,但是添加了额外的(自定义帖子类型)选项。

    The cpt date archives use the same theme template files as the normal WordPress date archives.

    cpt日期档案使用与普通WordPress日期档案相同的主题模板文件。

    Extra template files and

    额外的模板文件

    ="https://github.com/keesiemeijer/custom-post-type-date-archives/wiki/Functions" rel="nofollow">template functions are available for use in the custom post type date archives.

    =“ https://github.com/keesiemeijer/custom-post-type-date-archives/wiki/Functions” rel =“ nofollow”>模板函数可用于自定义帖子类型日期档案。

    For more information visit the Plugin Documentation

    有关更多信息,请访问插件文档

    >

    >

安装步骤

Follow these instructions to install the plugin.

按照以下说明安装插件。

    1. In your WordPress admin panel, go to Plugins > New Plugin, search for “custom post type date archives” and click “Install now”.
    2. 在WordPress管理面板中,转到“插件”>“新插件”,搜索“自定义帖子类型日期档案”,然后单击“立即安装”。

    3. Alternatively, download the plugin and upload the contents of custom-post-type-date-archives.zip to your plugins directory, which usually is /wp-content/plugins/.
    4. 或者,下载插件并将custom-post-type-date-archives.zip的内容上传到您的插件目录,该目录通常是/ wp-content / plugins/。
    5. Activate the plugin
    6. 激活插件

    7. Add date archives in the “Date Archives” sub menu of a custom post type.
    8. 在自定义帖子类型的“日期档案”子菜单中添加日期档案。

下载地址
https://downloads.wordpress.org/plugin/custom-post-type-date-archives.2.7.0.zip
-EOF-

AI助手支持GPT4.0