Plugins
0

Timeline Express – Date – Time Add-On

LICENSE TYPE: INFINITE

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

Screenshots

Installation

  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.

FAQ

  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.

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.

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)

Leave a Reply

Your email address will not be published.

Fill out this field
Fill out this field
Please enter a valid email address.
You need to agree with the terms to proceed

Most Viewed Posts
Menu