[wordpress插件] Custom Post Type Widgets自定义帖子类型小部件

wordpress 插件 文章 2020-04-09 09:10 569 0 全屏看文

AI助手支持GPT4.0

评分
94
描述

This WordPress plugin adds default custom post type widgets.

此WordPress插件添加了默认的自定义帖子类型小部件。

You can filter by registered Custom Post Type or Taxonomy on widgets.

您可以按小部件上已注册的自定义帖子类型或分类进行过滤。

Descriptions of Widgets

小部件的描述

Recent Posts (Custom Post Type)

最新帖子(自定义帖子类型)

display a list of the most recent custom posts.

显示最新的自定义帖子列表。

    • Title – description that appears over the list of recent custom posts.
    • 标题 –在最近的自定义帖子列表中显示的说明。

    • Post Type – if selected, filter by a custom post type.

    • 帖子类型 –如果选中,则按自定义帖子类型过滤。

      (e.g. post).

    • (例如发布)。

    • Number of posts to show (at most 15) – enter the number of posts to display.
    • 要显示的帖子数(最多15个) –输入要显示的帖子数。

    • Display post date? – if checked, display post date.
    • 显示发布日期? –如果选中,则显示发布日期。

    • Class Name – widget_recent_entries
    • 类名 – widget_recent_entries

    Archives (Custom Post Type)

    档案(自定义帖子类型)

    display a list of archive links for each month that has custom posts.

    显示每个月具有自定义帖子的存档链接的列表。

      • Title – description that appears over the list of archive links.
      • 标题 –在归档链接列表上方显示的说明。

      • Post Type – if selected, filter by a custom post type.

      • 帖子类型 –如果选中,则按自定义帖子类型过滤。

        (e.g. post).

      • (例如发布)。

      • Display as dropdown – if checked, this box causes the archives to be displayed in a drop-down box.
      • 显示为下拉列表 –如果选中,则此框将使归档显示在下拉框中。

      • Show post counts – if checked, this box causes a count of the number of posts for each archive period.
      • 显示帖子数 –如果选中,则此框将计算每个存档期间的帖子数。

      • Class Name – widget_archive
      • 类名 – widget_archive

      Categories (Custom Post Type)

      类别(自定义帖子类型)

      display a list of categories that has custom posts.

      显示具有自定义帖子的类别列表。

        • Title – description that appears over the list of categories.
        • 标题 –显示在类别列表上方的描述。

        • Taxonomy – if selected, filter a custom taxonomy (e.g. category).
        • 分类 –如果选中,则过滤自定义分类(例如类别)。

        • Display as dropdown – if checked, this box causes the categories to be displayed in a dropdown box.
        • 显示为下拉列表 –如果选中,则此框使类别显示在下拉框中。

        • Show post counts – if checked, this box causes the count of the number of posts to display with each category.
        • 显示帖子数 –如果选中,此框将显示每个类别的帖子数。

        • Show hierarchy – if checked, shows parent/child relationships in an indented manner.
        • 显示层次结构 –如果选中,则以缩进方式显示父/子关系。

        • Class Name – widget_categories
        • 类名 – widget_categories

        Calendar (Custom Post Type)

        日历(自定义帖子类型)

        display a calendar of the current month.

        显示当前月份的日历。

          • Title – description that appears over the calendar.
          • 标题 –显示在日历上的说明。

          • Post Type – if selected, filter by a custom post type.

          • 帖子类型 –如果选中,则按自定义帖子类型过滤。

            (e.g. post).

          • (例如发布)。

          • Class Name – widget_calendar
          • 类名 – widget_calendar

          Recent Comments (Custom Post Type)

          最近的评论(自定义帖子类型)

          display a list of the most recent comments.

          显示最近评论的列表。

安装步骤

    1. Download and unzip files.

    2. 下载并解压缩文件。

      Or install Custom Post Type Widgets plugin using the WordPress plugin installer.

      或使用WordPress插件安装程序安装Custom Post Type Widgets插件。

      In that case, skip 2.

    3. 在这种情况下,请跳过2。

    4. Upload “custom-post-type-widgets” to the “/wp-content/plugins/” directory.
    5. 将“ custom-post-type-widgets”上传到“ / wp-content / plugins /”目录。

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

    8. Adds widgets to a widget area and configure settings through the ‘Widgets’ menu in WordPress.
    9. 将小部件添加到小部件区域,并通过WordPress中的“小部件”菜单配置设置。

    10. Have fun!
    11. 玩得开心!

    IMPORTANT: By default, WordPress will not work Date-based permalinks of custom post type.

    重要:默认情况下,WordPress将无法使用自定义帖子类型的基于日期的永久链接。

    Recommend that you install the plugin in order to edit the permalink, if you are using a Date-based permalinks.

    如果您使用的是基于日期的永久链接,建议您安装插件以编辑永久链接。

    And try the following: Custom Post Type Rewrite

    并尝试以下操作:自定义帖子类型重写

    Filter hooks

    过滤钩

      • custom_post_type_widgets/archive/widget_archives_dropdown_args
      • custom_post_type_widgets / archive / widget_archives_dropdown_args

      • custom_post_type_widgets/archive/widget_archives_args
      • custom_post_type_widgets / archive / widget_archives_args

      • custom_post_type_widgets/categories/widget_categories_dropdown_args
      • custom_post_type_widgets / categories / widget_categories_dropdown_args

      • custom_post_type_widgets/categories/widget_categories_args
      • custom_post_type_widgets / categories / widget_categories_args

      • custom_post_type_widgetsecent_comments/widget_comments_args
      • custom_post_type_widgets / recent_comments / widget_comments_args

      • custom_post_type_widgetsecent_posts/widget_posts_args
      • custom_post_type_widgets / recent_posts / widget_posts_args

      • custom_post_type_widgets/search/filter_post_type
      • custom_post_type_widgets / search / filter_post_type

      • custom_post_type_widgets/tag_cloud/widget_tag_cloud_args
      • custom_post_type_widgets / tag_cloud / widget_tag_cloud_args

      Action hooks

      动作挂钩

        • custom_post_type_widgetsecent_posts/widget/before
        • custom_post_type_widgets / recent_posts / widget / before

        • custom_post_type_widgetsecent_posts/widget/prepend
        • custom_post_type_widgets / recent_posts / widget / prepend

        • custom_post_type_widgetsecent_posts/widget/append
        • custom_post_type_widgets / recent_posts / widget / append

        • custom_post_type_widgetsecent_posts/widget/after
        • custom_post_type_widgets / recent_posts / widget / after

下载地址
https://downloads.wordpress.org/plugin/custom-post-type-widgets.1.2.1.zip
-EOF-

AI助手支持GPT4.0