外掛說明
Shows a list of the last changes in the widget area, via shortcode or in the gutenberg block editor.
This can include changed pages and/or posts (configurable).
Additional features include:
- Select the number of entries in the list
- Define pages to be excluded
- Show the author of the page/post
Exclude page or post
To exclude a page or post from being listed in the widget do the following steps:
- Open the page or post you want to exclude for editing.
- Open the “Screen Options” (on the top right of the page)
- Ensure that “Custom Fields” is checked (see Screenshot #3)
- In the “Custom Fields” further down the screen add the following custom field (see Screenshot #4):
- name: list_last_changes_ignore
- value: true
To include it again set the value to false or remove the custom field completely.
Block Editor (Gutenberg)
The block can be found in Widgets -> List Last Changes.
The block can be configured in the block settings (panel on the right side)
In difference to the widget, with the block no title is written. If a title is needed it has to be defined in an own block in front of the List Last Changes block.
Shortcode
To show the list of the last changes via shortcode use the following syntax:
[list_last_changes number='7' showpages='true' showposts='true' showauthor='false' 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).
The ‘template’ attribute defines the content of the entries. If the ‘template’ attribute is defined the attribute ‘showauthor’ is ignored.
In difference to the widget, with the shortcode no title is written. If a title is needed it has to be defined by hand in front of the shortcode.
Templates
In the template string the following fields can be used: {title}, {change_date} and {author}.
{title} : the title of the page or post with a link to it
{change_date} : the date the page or post was changed
{author} : the author of the page or post
Sample templates:
{title} {change_date} : the default template
{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
螢幕擷圖
適用於區塊編輯器
這個外掛提供 1 個可供 Gutenberg/區塊編輯器使用的區塊。
- List Last Changes
常見問題集
-
Where are your Frequently Asked Questions? Why aren’t they here?
-
Because no questions were asked.
使用者評論
參與者及開發者
變更記錄
1.0.1
Release date: September 05, 2022
- Bugfix for exclude only up to five posts
1.0.0
Release date: December 09, 2020
- Introducing template mechanism in the block editor
- The configuration field ‘show author’ in the block editor is replaced by the template mechanism
- The template mechanism is now “feature complete”
0.9.5
Release date: December 08, 2020
- Introducing template mechanism in widget
- The configuration field ‘show author’ in the widget is replaced by the template mechanism
0.9.0
Release date: November 29, 2020
- Introducing template mechanism in shortcode (also planned for widget and block)
0.8.7
Release date: October 24, 2020
- Bugfix for not using the right url of a blog post when permalink was customized