[wordpress插件] Display Posts – Date View显示帖子–日期视图

wordpress 插件 文章 2020-04-19 13:51 688 0 全屏看文

AI助手支持GPT4.0

评分
100
描述

This plugin extends Display Posts by letting you break your content down by month or year.

此插件通过按月或按年细分内容来扩展显示帖子

You can use all of the Display Posts parameters to customize the query.

您可以使用所有显示帖子参数来自定义查询。

Month Listing

月份列表

[display-posts display_by_month="true" posts_per_page="999" title="Posts by Month"]

  [display-posts display_by_month =“ true” posts_per_page =“ 999” title =“按月发布的帖子”]

Use the display_by_month parameter to break it down by month.

使用 display_by_month 参数按月细分。

To list all your content, use a high posts_per_page, like 999. You can also add an optional title to appear above the listing.

要列出所有内容,请使用较高的 posts_per_page (例如999)。您还可以添加可选的 title 以显示在列表上方。

Year Listing

年列表

[display-posts display_by_year="true" posts_per_page="999" title"Posts by Year"]

  [display-posts display_by_year =“ true” posts_per_page =“ 999”标题“按年份发布的帖子”]

Use the display_by_month parameter to break it down by year.

使用 display_by_month 参数按年份将其细分。

To list all your content, use a high posts_per_page, like 999. You can also add an optional title to appear above the listing.

要列出所有内容,请使用较高的 posts_per_page (例如999)。您还可以添加可选的 title 以显示在列表上方。

Filters

过滤器

If you’re a developer, you can use the following filters to customize the markup:

如果您是开发人员,则可以使用以下过滤器来自定义标记:

    • display_posts_date_view_heading_tag – The heading tag used for date headings.

    • display_posts_date_view_heading_tag –用于日期标题的标题标签。

      Default is h4.

    • 默认值为h4。

    • display_posts_date_view_heading_class – The class added to the heading tag.

    • display_posts_date_view_heading_class –添加到标题标记的类。

      Default is .display-posts-date.

    • 默认值为.display-posts-date。

    • display_posts_date_view_month_format – The date format used for month headings.

    • display_posts_date_view_month_format –用于月份标题的日期格式。

      Default is ‘F Y’.

    • 默认值为“ F Y”。

    • display_posts_date_view_year_format – The date format used for year headings.

    • display_posts_date_view_year_format –用于年份标题的日期格式。

      Default is ‘Y’.

    • 默认值为“ Y”。

安装步骤

    1. Install and activate Display Posts
    2. 安装并激活显示帖子

    3. Install and activate Display Posts, Date View
    4. 安装并激活显示帖子,日期视图

    5. Add the [display-posts display_by_month="true"] shortcode to a post or page.
    6. 在帖子或页面上添加 [display-posts display_by_month =“ true”] 短代码。

下载地址
https://downloads.wordpress.org/plugin/display-posts-date-view.1.0.0.zip
-EOF-

AI助手支持GPT4.0