[wordpress插件] Custom Post Archives自定义帖子档案

wordpress 插件 文章 2020-04-09 01:00 445 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

Custom Post Archives bridges the gap between creating Custom Post Types in WordPress 3, and actually displaying those posts.

自定义帖子档案库弥补了在WordPress 3中创建自定义帖子类型与实际显示这些帖子之间的差距。

With this plugin, you have

有了这个插件,您就可以

the option of displaying a completely seperate blog-like section for each post type, complete with all the features you expect to see with WordPress.

可以为每种帖子类型显示完全独立的类似博客的部分,并具有您希望在WordPress中看到的所有功能。

For each custom post type, if you click “active” and enter a slug-name, this plugin will let you display post-type specific:

对于每种自定义帖子类型,如果您单击“活动”并输入一个名字,该插件将使您显示特定于帖子类型的信息:

    • Archives
    • 档案文件

    • Date archives
    • 日期档案

    • Author archives
    • 作者档案

    • Category archives
    • 类别档案库

    • RSS Feeds
    • RSS供稿

    This plug-in also provides many additional features to fully integrate your custom post types, including:

    此插件还提供许多附加功能,以完全集成您的自定义帖子类型,包括:

      • Adds a menu option to the new menu section created in WordPress 3 (for themes that support it)
      • 将菜单选项添加到WordPress 3中创建的新菜单部分(用于支持该主题的主题)

      • Combined archives (http://www.mysite.com/type1+type2/)
      • 组合档案(http://www.mysite.com/type1+type2/)

      • Option to add post types to default blog
      • 将帖子类型添加到默认博客的选项

      • Option to add post types to default RSS feed
      • 将帖子类型添加到默认RSS feed的选项

      • Adds post type support to wp_get_archives function
      • 为wp_get_archives函数添加帖子类型支持

      • Adds multiple global functions and filters for working with custom post types (see Functions and Filters or Plugin Help for details)
      • 添加了多个用于自定义帖子类型的全局功能和过滤器(有关详细信息,请参见“功能和过滤器”或“插件帮助”)

      • Automatically displays the associated post type on custom taxonomy archives
      • 自动在自定义分类档案中显示相关的帖子类型

      • Extends upon the WordPress templating, allowing for flexibility by theme authors (see FAQ or Plugin Help for details)
      • 扩展了WordPress模板,允许主题作者具有灵活性(有关详细信息,请参见FAQ或插件帮助)

      • Automatically flushes the rewrite cache after modifications are detected
      • 检测到修改后自动刷新重写缓存

      • Automatically adds a “blog-{post_type}” type class to the body of the created archives (for themes that implement body_class())
      • 自动将“ blog- {post_type}”类型类添加到创建的档案的正文中(用于实现body_class()的主题)

      For help and support, help has been built into the plug-in page’s contextual help section;

      为获得帮助和支持,已在插件页面的上下文帮助部分中内置了帮助;

      be sure to check the FAQ and the 常见问题解答

      org/tags/custom-post-archives?forum_id=10">plug-in forums if that doesn't do it.

      org / tags / custom-post-archives?forum_id = 10“>插件论坛(如果不这样做的话)。

      If there are any other features you’d like to see, I’m all ears.

      如果您还想看到其他功能,我非常高兴。

      Feel free to send a message, or 发送消息,或

      post-archives?forum_id=10">hit the forums!

      post-archives?forum_id = 10“>点击论坛!

      Functions and Filters

      功能和过滤器

      The following function and filters are created by this plug-in.

      以下功能和过滤器由该插件创建。

      For more detailed descriptions, check the Help section built into the settings page.

      有关更多详细说明,请查看设置页面中内置的“帮助”部分。

      Functions

      功能

      is_custom_archive({$post_type = false});

        is_custom_archive({$ post_type = false});

      get_custom_archive_url($post_type);

      get_custom_archive_url($ post_type);

      get_custom_archive_label({$post_type = false});

      get_custom_archive_label({$ post_type = false});

      get_custom_archive_link($post_type);

      get_custom_archive_link($ post_type);

      The following functions are for advanced users.

      以下功能适用于高级用户。

      Each overrides the settings for the corresponding post_type in the plugin settings.

      每个插件都会覆盖插件设置中相应post_type的设置。

      add_custom_archive($post_type,$slug,{$in_default = false,$in_rss = false});

        add_custom_archive($ post_type,$ slug,{$ in_default = false,$ in_rss = false});

      remove_custom_archive($post_type);

      remove_custom_archive($ post_type);

      add_to_default_archive($post_type);

      add_to_default_archive($ post_type);

      remove_from_default_archive($post_type);

      remove_from_default_archive($ post_type);

      reset_custom_archive_to_default($post_type);

      reset_custom_archive_to_default($ post_type);

      Filters

      过滤器

      cpa_rewrite_label

        cpa_rewrite_label

      Allows you to format the label returned by get_custom_archive_label().

      允许您格式化get_custom_archive_label()返回的标签。

      cpa_templates

        cpa_templates

      Allows you to provide or alter the list of templates Custom Post Archives searches for.

      允许您提供或更改Custom Post Archives搜索的模板列表。

安装步骤

    1. Upload the custom-post-archives/ folder to the /wp-content/plugins/ directory
    2. custom-post-archives / 文件夹上载到 / wp-content / plugins / 目录

    3. Activate the plugin through the ‘Plugins’ menu in WordPress
    4. 通过WordPress中的“插件”菜单激活插件

    5. Configure the post types you would like archives for on the settings page
    6. 在设置页面上配置您想要归档的帖子类型

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

AI助手支持GPT4.0