Support » Plugins and Hacks » TM Timeline » Change date format to full length?

  • mattmagi

    (@mattmagi)


    Hi, first off very nice plugin, works great and looks awesome.

    Id like to change the date from 2005-11-15 to December 15th, 2005. Any tips? Im using the chess order.

    Thanks!

Viewing 1 replies (of 1 total)
  • Plugin Author TemplateMonster

    (@templatemonster-2002)


    Hello, mattmagi.

    In version 1.0.4, plugin support a limited date formats. If you want to change date like December 15th, 2005, copy and paste code below in your functions.php:

    
    add_filter( 'tm_timeline_format_date', 'mytheme_timeline_format_date', 11, 2 );
    function mytheme_timeline_format_date( $date, $format ) {
    	return date_i18n( 'F j, Y', strtotime( $date ) );
    }
    
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.