Этот плагин не тестировался с последними 3 основными выпусками WordPress. Скорее всего, он уже не поддерживается и может быть несовместим с текущими версиями WordPress.

Timeline Express — Date — Time Add-On

Описание

When active, the Timeline Express — Date — Time Add-On will hide the default announcement date field, and generate a date and time field for you to use.

Multiple announcements that have the same date & time will fallback to use the published date to dictate order on the timeline.

Developers

Filters:
timeline_express_date_time_formats — Add your own date formats to the announcement.

Example:

/**
 * Assign a custom date format to the announcements.
 *
 * @param array $date_formats The original date formats array.
 */
function timeline_express_demo_custom_date_format( $date_formats ) {

    $date_formats['custom'] = 'Y-m-d'; // eg: 2018-10-02

}
add_filter( 'timeline_express_date_time_formats', 'timeline_express_demo_custom_date_format' );

timeline_express_date_time_query_args — Filter the query run for the date time add-on.

Example:

/**
 * Filter the announcement date time add-on query.
 * Fall back to post titles instead of published date when announcements contain the same date-time values.
 *
 * @param array $query_args The original date time add-on query arguments.
 */
function timeline_express_demo_filter_query_args( $query_args ) {

    unset( $query_args['orderby'] );

    $query_args['orderby'] = 'meta_value_num title';

    return $query_args;

}
add_filter( 'timeline_express_date_time_query_args', 'timeline_express_demo_filter_query_args' );

Скриншоты

  • Announcement Date & Time Selector
  • Front End Date & Time on the Timeline

Установка

  1. Upload the entire timeline-express-date-time-add-on folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. If you previously had announcements setup, follow the migration steps.
  4. Create a new announcement set a date & time and set the date format for each announcement.

Часто задаваемые вопросы

Installation Instructions
  1. Upload the entire timeline-express-date-time-add-on folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. If you previously had announcements setup, follow the migration steps.
  4. Create a new announcement set a date & time and set the date format for each announcement.
What if multiple announcements have the same dates?

If multiple announcements use the same date and time, then the announcement ‘published’ date will be used to dictate the order. The published date can be adjusted just above the ‘Publish’ button in the right hand sidebar on the announcement creation/edit screen in the dashboard.

Can I set the display format? I don’t want to display the time on some announcements.

Yes! For each announcement you have the ability to choose how the dates are displayed. Out of the box you can display the dates in the following formats:

  • Full Date (ie: 02/10/2018 1:00 PM)
  • Year Only (ie: 2018)
  • Date Only (ie: 02/10/2018)
  • Time Only (ie: 1:00 PM)

Отзывы

21.04.2018
Great add-on to Timeline Express base plugin. Worked as advertised. I've used it to create a timeline of events for an upcoming conference with talks at certain times on the same day. Worked well - thanks.
23.03.2018
The promised date format picker doesn't show up. There's a line there, but nothing to choose from.
Посмотреть все 2 отзыва

Участники и разработчики

«Timeline Express — Date — Time Add-On» — проект с открытым исходным кодом. В развитие плагина внесли свой вклад следующие участники:

Участники

Перевести «Timeline Express — Date — Time Add-On» на ваш язык.

Заинтересованы в разработке?

Посмотрите код, проверьте SVN репозиторий, или подпишитесь на журнал разработки по RSS.

Журнал изменений

1.0.1 — February 26th, 2018

  • Tweak: Ensure plugin works with Timeline Express free/pro.
  • Tweak: Allow translation files to be loaded from theme root (see i18n/how-to.txt).
  • Tweak: Hide migration notice when plugin is activated without Timeline Express free/pro.
  • Tweak: Update admin notice styles on activation.

1.0.0 — February 11th, 2018

  • Initial release.