Описание
Отображение списка последних изменений в области виджетов, через шорткод или в редакторе блоков Gutenberg.
Он может включать изменённые страницы и/или записи (настраивается).
Дополнительные возможности:
- Укажите количество элементов в списке
- Define pages to be excluded
- Show the author of the page/post
Исключение страницы или записи
Чтобы исключить страницу или запись из списка в виджете, выполните следующие действия:
- Откройте редактирование страницы или записи, которую вы хотите исключить.
- Откройте «Настройки экрана» (в правом верхнем углу страницы)
- Убедитесь, что «Пользовательские поля» отмечены (см. скриншот № 3)
- В разделе «Пользовательские поля» внизу экрана добавьте следующее пользовательское поле (см. скриншот № 4):
- название: list_last_changes_ignore
- значение: true
Чтобы отменить исключение, установите значение false или полностью удалите пользовательское поле.
Редактор блоков (Gutenberg)
Блок находится в разделе Виджеты -> List Last Changes.
Блок можно изменять в настройках блока (панель справа).
В отличие от виджета, заголовок в блоке не пишется. Если необходим заголовок, он должен быть указан в блоке перед List Last Changes.
Шорткод
Чтобы показывать список последних изменений с помощью шорткода, используйте следующий синтаксис:
[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 блок.
- List Last Changes
Часто задаваемые вопросы
-
Где часто задаваемые вопросы? Почему их здесь нет?
-
Потому что вопросов не задавалось.
Отзывы
Участники и разработчики
«List Last Changes» — проект с открытым исходным кодом. В развитие плагина внесли свой вклад следующие участники:
Участники«List Last Changes» переведён на 7 языков. Благодарим переводчиков за их работу.
Перевести «List Last Changes» на ваш язык.
Заинтересованы в разработке?
Посмотрите код, проверьте SVN репозиторий, или подпишитесь на журнал разработки по RSS.
Журнал изменений
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