List Last Changes

描述

通过简码或古腾堡块编辑器显示小部件区域中最后更改的列表。↵ 这可以包括更改的页面和/或帖子(可配置)。

额外的功能包括:

  • 在列表中选择一系列的条目
  • 定义页面可以执行
  • Show the author or the last editor of the page/post
  • Select and order by date modified or date published

排除页面或者文章

To exclude a page or post from being listed in the widget do the following steps:

  1. 打开你想要排除的页面或者文章来进行编辑
  2. 打开 “Screen 选项” (在页面顶部的右侧)
  3. 确保 “Custom Fields” 已经被检查 (查看Screenshot #3)
  4. In the “Custom Fields” further down the screen add the following custom field (see Screenshot #4):
    • name: list_last_changes_ignore
    • 值:true

为了再次包含它并且来设置flase或者移除的值给完整的自定义字段

区块编辑器 (Gutenberg)

区块可以在Widgets中找到 -> List Last Changes.
区块可以在区块设置中配置(面板在右侧)

与小部件不同的是,块没有标题。如果需要标题,则必须在 List Last Changes 块前面的自己的块中定义它。

短代码

使用下列的语法来展现一系列列表最近的改变:

[list_last_changes number='7' showpages='true' showposts='true' showauthor='false' usedatepublished='true' template='{title} {change_date} {author}' /]

The attribute ‘number’ defines the number of entries shown.
With the attributes ‘showpages’ and ‘showposts’ changed pages and/or posts are included.
To show also the author set the attribute ‘showauthor’ to true (deprecated, use template mechanism instead).
With the attribute ‘usedatepublished’ set to ‘true’ the date when the page or post was first published, if set to ‘false’ (or not set at all) the date the page or post was modified is used.
The ‘template’ attribute defines the content of the entries. If the ‘template’ attribute is defined the attribute ‘showauthor’ is ignored.

不同于widget,使用短代码没有标题被写入。如果一个标题是需要的,他会被手动定义到短代码。

模板

In the template string the following fields can be used: {title}, {change_date}, {published_date}, {author} and {editor}.
{title} : the title of the page or post with a link to it
{change_date} or {change_date[format]} : the date the page or post was changed (“modified date”)
{published_date} or {published_date[format]} : the date the page or post was published (“post date”)
{author} : the author of the page or post
{editor} : the last editor of the page or post

With the optional [format] the date format of change_date and published_date can be defined. The date format is in the php date formatting.
Without definition the wordpress system date format is used.

Sample templates:
{title} {change_date} : the default template
{title} {change_date[Y-m-d H:i]} : like the default template but with date and time defined by the given format
{title} {change_date} {author} : behaves as in versions before 0.9 when show author was enabled
{change_date} : shows only the change_date, can be used with number = 1 as last modified date of a WordPress Site

屏幕截图

  • widget的配置
  • 输出widget
  • 在页面中启用自定义字段
  • 添加这个自定义字段在页面中,并且执行它在Widget。

区块

该插件提供了 1 个区块.

  • List Last Changes

常见问题

你的FAQ在哪?为什么他们不在这?

因为没有问题被问到

评价

2023 年 11 月 8 日 1 回复
I love the plugin but the version 1.0.2 broke the website.
2022 年 9 月 6 日
Really simple to set up and makes a great feature for highlighting updated site content.
阅读所有9条评价

贡献者及开发者

「List Last Changes」是开源软件。 以下人员对此插件做出了贡献。

贡献者

「List Last Changes」插件已被翻译至 10 种本地化语言。 感谢所有译者为本插件所做的贡献。

帮助将「List Last Changes」翻译成简体中文。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

1.2.0

Release date: October 02, 2024

  • fields {change_date} and {published_date} with optional date format

1.1.2

Release date: September 13, 2024

  • fix for wrong user name of editor field under some circumstances

1.1.1

Release date: July 13, 2024

  • Small quality fixes (from static code analyzer)

1.1.0

Release date: April 23, 2024

  • Configuration to select and order the pages and/or posts by date modified or date published
  • new field {published_date} in the template string to show the date the page or post was published (“post date”)
  • new field {editor} in the template string to show the last editor of the page or post

1.0.5

Release date: November 12, 2023

  • Bugfix for limit the ignored pages or posts to the number of posts per page (regression of 1.0.2).

Older releases

see additional changelog.txt file