Timeline Express – Date – Time Add-On

Timeline Express – Date – Time Add-On Install Statistics

0
100%
Today: 0 Yesterday: 0 All-time: 2,644 downloads
Timeline Express – Date – Time Add-On Icon

Try plugin: Timeline Express – Date – Time Add-On

We'll create fresh WordPress site with Timeline Express – Date – Time Add-On installed. You have 20 minutes to test the plugin after that site we'll be deleted.

Takes ~10 seconds to install.

About Timeline Express – Date – Time Add-On

Assign and display times alongside the announcement dates in Timeline Express announcements.

1


0


0


0


2

updated: 1 year ago
since: 6 years ago
author: Code Parrots

Description

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' );