AI助手支持GPT4.0
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.
您可以使用所有显示帖子参数来自定义查询。 p>
Month Listing
月份列表 strong> p>[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 =“按月发布的帖子”] code> pre>Use the display_by_month parameter to break it down by month.使用 display_by_month code>参数按月细分。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 code>(例如999)。您还可以添加可选的 title code>以显示在列表上方。 p>Year Listing 年列表 strong> p>[display-posts display_by_year="true" posts_per_page="999" title"Posts by Year"] [display-posts display_by_year =“ true” posts_per_page =“ 999”标题“按年份发布的帖子”] code> pre>Use the display_by_month parameter to break it down by year.使用 display_by_month code>参数按年份将其细分。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 code>(例如999)。您还可以添加可选的 title code>以显示在列表上方。 p>Filters 过滤器 strong> p>If you’re a developer, you can use the following filters to customize the markup:如果您是开发人员,则可以使用以下过滤器来自定义标记: p>display_posts_date_view_heading_tag – The heading tag used for date headings. display_posts_date_view_heading_tag code> –用于日期标题的标题标签。Default is h4.默认值为h4。 li>display_posts_date_view_heading_class – The class added to the heading tag. display_posts_date_view_heading_class code> –添加到标题标记的类。Default is .display-posts-date.默认值为.display-posts-date。 li>display_posts_date_view_month_format – The date format used for month headings. display_posts_date_view_month_format code> –用于月份标题的日期格式。Default is ‘F Y’.默认值为“ F Y”。 li>display_posts_date_view_year_format – The date format used for year headings. display_posts_date_view_year_format code> –用于年份标题的日期格式。Default is ‘Y’.默认值为“ Y”。 li> ul>
[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 =“按月发布的帖子”] code> pre>Use the display_by_month parameter to break it down by month.使用 display_by_month code>参数按月细分。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 code>(例如999)。您还可以添加可选的 title code>以显示在列表上方。 p>Year Listing 年列表 strong> p>[display-posts display_by_year="true" posts_per_page="999" title"Posts by Year"] [display-posts display_by_year =“ true” posts_per_page =“ 999”标题“按年份发布的帖子”] code> pre>Use the display_by_month parameter to break it down by year.使用 display_by_month code>参数按年份将其细分。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 code>(例如999)。您还可以添加可选的 title code>以显示在列表上方。 p>Filters 过滤器 strong> p>If you’re a developer, you can use the following filters to customize the markup:如果您是开发人员,则可以使用以下过滤器来自定义标记: p>display_posts_date_view_heading_tag – The heading tag used for date headings. display_posts_date_view_heading_tag code> –用于日期标题的标题标签。Default is h4.默认值为h4。 li>display_posts_date_view_heading_class – The class added to the heading tag. display_posts_date_view_heading_class code> –添加到标题标记的类。Default is .display-posts-date.默认值为.display-posts-date。 li>display_posts_date_view_month_format – The date format used for month headings. display_posts_date_view_month_format code> –用于月份标题的日期格式。Default is ‘F Y’.默认值为“ F Y”。 li>display_posts_date_view_year_format – The date format used for year headings. display_posts_date_view_year_format code> –用于年份标题的日期格式。Default is ‘Y’.默认值为“ Y”。 li> ul>
[display-posts display_by_month =“ true” posts_per_page =“ 999” title =“按月发布的帖子”]
code> pre>
Use the display_by_month parameter to break it down by month.
display_by_month
使用 display_by_month code>参数按月细分。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 code>(例如999)。您还可以添加可选的 title code>以显示在列表上方。 p>Year Listing 年列表 strong> p>[display-posts display_by_year="true" posts_per_page="999" title"Posts by Year"] [display-posts display_by_year =“ true” posts_per_page =“ 999”标题“按年份发布的帖子”] code> pre>Use the display_by_month parameter to break it down by year.使用 display_by_month code>参数按年份将其细分。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 code>(例如999)。您还可以添加可选的 title code>以显示在列表上方。 p>Filters 过滤器 strong> p>If you’re a developer, you can use the following filters to customize the markup:如果您是开发人员,则可以使用以下过滤器来自定义标记: p>display_posts_date_view_heading_tag – The heading tag used for date headings. display_posts_date_view_heading_tag code> –用于日期标题的标题标签。Default is h4.默认值为h4。 li>display_posts_date_view_heading_class – The class added to the heading tag. display_posts_date_view_heading_class code> –添加到标题标记的类。Default is .display-posts-date.默认值为.display-posts-date。 li>display_posts_date_view_month_format – The date format used for month headings. display_posts_date_view_month_format code> –用于月份标题的日期格式。Default is ‘F Y’.默认值为“ F Y”。 li>display_posts_date_view_year_format – The date format used for year headings. display_posts_date_view_year_format code> –用于年份标题的日期格式。Default is ‘Y’.默认值为“ Y”。 li> ul>
display_by_month code>参数按月细分。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 code>(例如999)。您还可以添加可选的 title code>以显示在列表上方。 p>Year Listing 年列表 strong> p>[display-posts display_by_year="true" posts_per_page="999" title"Posts by Year"] [display-posts display_by_year =“ true” posts_per_page =“ 999”标题“按年份发布的帖子”] code> pre>Use the display_by_month parameter to break it down by year.使用 display_by_month code>参数按年份将其细分。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 code>(例如999)。您还可以添加可选的 title code>以显示在列表上方。 p>Filters 过滤器 strong> p>If you’re a developer, you can use the following filters to customize the markup:如果您是开发人员,则可以使用以下过滤器来自定义标记: p>display_posts_date_view_heading_tag – The heading tag used for date headings. display_posts_date_view_heading_tag code> –用于日期标题的标题标签。Default is h4.默认值为h4。 li>display_posts_date_view_heading_class – The class added to the heading tag. display_posts_date_view_heading_class code> –添加到标题标记的类。Default is .display-posts-date.默认值为.display-posts-date。 li>display_posts_date_view_month_format – The date format used for month headings. display_posts_date_view_month_format code> –用于月份标题的日期格式。Default is ‘F Y’.默认值为“ F Y”。 li>display_posts_date_view_year_format – The date format used for year headings. display_posts_date_view_year_format code> –用于年份标题的日期格式。Default is ‘Y’.默认值为“ Y”。 li> ul>
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
title
要列出所有内容,请使用较高的 posts_per_page code>(例如999)。您还可以添加可选的 title code>以显示在列表上方。 p>Year Listing 年列表 strong> p>[display-posts display_by_year="true" posts_per_page="999" title"Posts by Year"] [display-posts display_by_year =“ true” posts_per_page =“ 999”标题“按年份发布的帖子”] code> pre>Use the display_by_month parameter to break it down by year.使用 display_by_month code>参数按年份将其细分。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 code>(例如999)。您还可以添加可选的 title code>以显示在列表上方。 p>Filters 过滤器 strong> p>If you’re a developer, you can use the following filters to customize the markup:如果您是开发人员,则可以使用以下过滤器来自定义标记: p>display_posts_date_view_heading_tag – The heading tag used for date headings. display_posts_date_view_heading_tag code> –用于日期标题的标题标签。Default is h4.默认值为h4。 li>display_posts_date_view_heading_class – The class added to the heading tag. display_posts_date_view_heading_class code> –添加到标题标记的类。Default is .display-posts-date.默认值为.display-posts-date。 li>display_posts_date_view_month_format – The date format used for month headings. display_posts_date_view_month_format code> –用于月份标题的日期格式。Default is ‘F Y’.默认值为“ F Y”。 li>display_posts_date_view_year_format – The date format used for year headings. display_posts_date_view_year_format code> –用于年份标题的日期格式。Default is ‘Y’.默认值为“ Y”。 li> ul>
posts_per_page code>(例如999)。您还可以添加可选的 title code>以显示在列表上方。 p>Year Listing 年列表 strong> p>[display-posts display_by_year="true" posts_per_page="999" title"Posts by Year"] [display-posts display_by_year =“ true” posts_per_page =“ 999”标题“按年份发布的帖子”] code> pre>Use the display_by_month parameter to break it down by year.使用 display_by_month code>参数按年份将其细分。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 code>(例如999)。您还可以添加可选的 title code>以显示在列表上方。 p>Filters 过滤器 strong> p>If you’re a developer, you can use the following filters to customize the markup:如果您是开发人员,则可以使用以下过滤器来自定义标记: p>display_posts_date_view_heading_tag – The heading tag used for date headings. display_posts_date_view_heading_tag code> –用于日期标题的标题标签。Default is h4.默认值为h4。 li>display_posts_date_view_heading_class – The class added to the heading tag. display_posts_date_view_heading_class code> –添加到标题标记的类。Default is .display-posts-date.默认值为.display-posts-date。 li>display_posts_date_view_month_format – The date format used for month headings. display_posts_date_view_month_format code> –用于月份标题的日期格式。Default is ‘F Y’.默认值为“ F Y”。 li>display_posts_date_view_year_format – The date format used for year headings. display_posts_date_view_year_format code> –用于年份标题的日期格式。Default is ‘Y’.默认值为“ Y”。 li> ul>
title code>以显示在列表上方。 p>Year Listing 年列表 strong> p>[display-posts display_by_year="true" posts_per_page="999" title"Posts by Year"] [display-posts display_by_year =“ true” posts_per_page =“ 999”标题“按年份发布的帖子”] code> pre>Use the display_by_month parameter to break it down by year.使用 display_by_month code>参数按年份将其细分。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 code>(例如999)。您还可以添加可选的 title code>以显示在列表上方。 p>Filters 过滤器 strong> p>If you’re a developer, you can use the following filters to customize the markup:如果您是开发人员,则可以使用以下过滤器来自定义标记: p>display_posts_date_view_heading_tag – The heading tag used for date headings. display_posts_date_view_heading_tag code> –用于日期标题的标题标签。Default is h4.默认值为h4。 li>display_posts_date_view_heading_class – The class added to the heading tag. display_posts_date_view_heading_class code> –添加到标题标记的类。Default is .display-posts-date.默认值为.display-posts-date。 li>display_posts_date_view_month_format – The date format used for month headings. display_posts_date_view_month_format code> –用于月份标题的日期格式。Default is ‘F Y’.默认值为“ F Y”。 li>display_posts_date_view_year_format – The date format used for year headings. display_posts_date_view_year_format code> –用于年份标题的日期格式。Default is ‘Y’.默认值为“ Y”。 li> ul>
Year Listing
年列表 strong> p>[display-posts display_by_year="true" posts_per_page="999" title"Posts by Year"] [display-posts display_by_year =“ true” posts_per_page =“ 999”标题“按年份发布的帖子”] code> pre>Use the display_by_month parameter to break it down by year.使用 display_by_month code>参数按年份将其细分。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 code>(例如999)。您还可以添加可选的 title code>以显示在列表上方。 p>Filters 过滤器 strong> p>If you’re a developer, you can use the following filters to customize the markup:如果您是开发人员,则可以使用以下过滤器来自定义标记: p>display_posts_date_view_heading_tag – The heading tag used for date headings. display_posts_date_view_heading_tag code> –用于日期标题的标题标签。Default is h4.默认值为h4。 li>display_posts_date_view_heading_class – The class added to the heading tag. display_posts_date_view_heading_class code> –添加到标题标记的类。Default is .display-posts-date.默认值为.display-posts-date。 li>display_posts_date_view_month_format – The date format used for month headings. display_posts_date_view_month_format code> –用于月份标题的日期格式。Default is ‘F Y’.默认值为“ F Y”。 li>display_posts_date_view_year_format – The date format used for year headings. display_posts_date_view_year_format code> –用于年份标题的日期格式。Default is ‘Y’.默认值为“ Y”。 li> ul>
[display-posts display_by_year="true" posts_per_page="999" title"Posts by Year"] [display-posts display_by_year =“ true” posts_per_page =“ 999”标题“按年份发布的帖子”] code> pre>Use the display_by_month parameter to break it down by year.使用 display_by_month code>参数按年份将其细分。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 code>(例如999)。您还可以添加可选的 title code>以显示在列表上方。 p>Filters 过滤器 strong> p>If you’re a developer, you can use the following filters to customize the markup:如果您是开发人员,则可以使用以下过滤器来自定义标记: p>display_posts_date_view_heading_tag – The heading tag used for date headings. display_posts_date_view_heading_tag code> –用于日期标题的标题标签。Default is h4.默认值为h4。 li>display_posts_date_view_heading_class – The class added to the heading tag. display_posts_date_view_heading_class code> –添加到标题标记的类。Default is .display-posts-date.默认值为.display-posts-date。 li>display_posts_date_view_month_format – The date format used for month headings. display_posts_date_view_month_format code> –用于月份标题的日期格式。Default is ‘F Y’.默认值为“ F Y”。 li>display_posts_date_view_year_format – The date format used for year headings. display_posts_date_view_year_format code> –用于年份标题的日期格式。Default is ‘Y’.默认值为“ Y”。 li> ul>
[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 code>参数按年份将其细分。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 code>(例如999)。您还可以添加可选的 title code>以显示在列表上方。 p>Filters 过滤器 strong> p>If you’re a developer, you can use the following filters to customize the markup:如果您是开发人员,则可以使用以下过滤器来自定义标记: p>display_posts_date_view_heading_tag – The heading tag used for date headings. display_posts_date_view_heading_tag code> –用于日期标题的标题标签。Default is h4.默认值为h4。 li>display_posts_date_view_heading_class – The class added to the heading tag. display_posts_date_view_heading_class code> –添加到标题标记的类。Default is .display-posts-date.默认值为.display-posts-date。 li>display_posts_date_view_month_format – The date format used for month headings. display_posts_date_view_month_format code> –用于月份标题的日期格式。Default is ‘F Y’.默认值为“ F Y”。 li>display_posts_date_view_year_format – The date format used for year headings. display_posts_date_view_year_format code> –用于年份标题的日期格式。Default is ‘Y’.默认值为“ Y”。 li> ul>
display_by_month code>参数按年份将其细分。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 code>(例如999)。您还可以添加可选的 title code>以显示在列表上方。 p>Filters 过滤器 strong> p>If you’re a developer, you can use the following filters to customize the markup:如果您是开发人员,则可以使用以下过滤器来自定义标记: p>display_posts_date_view_heading_tag – The heading tag used for date headings. display_posts_date_view_heading_tag code> –用于日期标题的标题标签。Default is h4.默认值为h4。 li>display_posts_date_view_heading_class – The class added to the heading tag. display_posts_date_view_heading_class code> –添加到标题标记的类。Default is .display-posts-date.默认值为.display-posts-date。 li>display_posts_date_view_month_format – The date format used for month headings. display_posts_date_view_month_format code> –用于月份标题的日期格式。Default is ‘F Y’.默认值为“ F Y”。 li>display_posts_date_view_year_format – The date format used for year headings. display_posts_date_view_year_format code> –用于年份标题的日期格式。Default is ‘Y’.默认值为“ Y”。 li> ul>
要列出所有内容,请使用较高的 posts_per_page code>(例如999)。您还可以添加可选的 title code>以显示在列表上方。 p>Filters 过滤器 strong> p>If you’re a developer, you can use the following filters to customize the markup:如果您是开发人员,则可以使用以下过滤器来自定义标记: p>display_posts_date_view_heading_tag – The heading tag used for date headings. display_posts_date_view_heading_tag code> –用于日期标题的标题标签。Default is h4.默认值为h4。 li>display_posts_date_view_heading_class – The class added to the heading tag. display_posts_date_view_heading_class code> –添加到标题标记的类。Default is .display-posts-date.默认值为.display-posts-date。 li>display_posts_date_view_month_format – The date format used for month headings. display_posts_date_view_month_format code> –用于月份标题的日期格式。Default is ‘F Y’.默认值为“ F Y”。 li>display_posts_date_view_year_format – The date format used for year headings. display_posts_date_view_year_format code> –用于年份标题的日期格式。Default is ‘Y’.默认值为“ Y”。 li> ul>
posts_per_page code>(例如999)。您还可以添加可选的 title code>以显示在列表上方。 p>Filters 过滤器 strong> p>If you’re a developer, you can use the following filters to customize the markup:如果您是开发人员,则可以使用以下过滤器来自定义标记: p>display_posts_date_view_heading_tag – The heading tag used for date headings. display_posts_date_view_heading_tag code> –用于日期标题的标题标签。Default is h4.默认值为h4。 li>display_posts_date_view_heading_class – The class added to the heading tag. display_posts_date_view_heading_class code> –添加到标题标记的类。Default is .display-posts-date.默认值为.display-posts-date。 li>display_posts_date_view_month_format – The date format used for month headings. display_posts_date_view_month_format code> –用于月份标题的日期格式。Default is ‘F Y’.默认值为“ F Y”。 li>display_posts_date_view_year_format – The date format used for year headings. display_posts_date_view_year_format code> –用于年份标题的日期格式。Default is ‘Y’.默认值为“ Y”。 li> ul>
title code>以显示在列表上方。 p>Filters 过滤器 strong> p>If you’re a developer, you can use the following filters to customize the markup:如果您是开发人员,则可以使用以下过滤器来自定义标记: p>display_posts_date_view_heading_tag – The heading tag used for date headings. display_posts_date_view_heading_tag code> –用于日期标题的标题标签。Default is h4.默认值为h4。 li>display_posts_date_view_heading_class – The class added to the heading tag. display_posts_date_view_heading_class code> –添加到标题标记的类。Default is .display-posts-date.默认值为.display-posts-date。 li>display_posts_date_view_month_format – The date format used for month headings. display_posts_date_view_month_format code> –用于月份标题的日期格式。Default is ‘F Y’.默认值为“ F Y”。 li>display_posts_date_view_year_format – The date format used for year headings. display_posts_date_view_year_format code> –用于年份标题的日期格式。Default is ‘Y’.默认值为“ Y”。 li> ul>
Filters
过滤器 strong> p>If you’re a developer, you can use the following filters to customize the markup:如果您是开发人员,则可以使用以下过滤器来自定义标记: p>display_posts_date_view_heading_tag – The heading tag used for date headings. display_posts_date_view_heading_tag code> –用于日期标题的标题标签。Default is h4.默认值为h4。 li>display_posts_date_view_heading_class – The class added to the heading tag. display_posts_date_view_heading_class code> –添加到标题标记的类。Default is .display-posts-date.默认值为.display-posts-date。 li>display_posts_date_view_month_format – The date format used for month headings. display_posts_date_view_month_format code> –用于月份标题的日期格式。Default is ‘F Y’.默认值为“ F Y”。 li>display_posts_date_view_year_format – The date format used for year headings. display_posts_date_view_year_format code> –用于年份标题的日期格式。Default is ‘Y’.默认值为“ Y”。 li> ul>
If you’re a developer, you can use the following filters to customize the markup:
如果您是开发人员,则可以使用以下过滤器来自定义标记: p>
display_posts_date_view_heading_tag
display_posts_date_view_heading_tag code> –用于日期标题的标题标签。Default is h4.
Default is h4.
默认值为h4。 li>
display_posts_date_view_heading_class
display_posts_date_view_heading_class code> –添加到标题标记的类。Default is .display-posts-date.
Default is .display-posts-date.
默认值为.display-posts-date。 li>
display_posts_date_view_month_format
display_posts_date_view_month_format code> –用于月份标题的日期格式。Default is ‘F Y’.
Default is ‘F Y’.
默认值为“ F Y”。 li>
display_posts_date_view_year_format
display_posts_date_view_year_format code> –用于年份标题的日期格式。Default is ‘Y’.
Default is ‘Y’.
默认值为“ Y”。 li>
ul>
[display-posts display_by_month="true"]
[display-posts display_by_month =“ true”] code>短代码。 li>
ol>
原文出处:http://www.sanshu.cn/a/11186.html
群主管理都是支付大佬