Forum Replies Created

Viewing 2 replies - 511 through 512 (of 512 total)
  • Plugin Contributor Code Parrots

    (@codeparrots)

    Hi @technomediapei,

    To maintain a proper order on the timeline, the announcements require a month & day. However, on the frontend of the site, you can easily customize the date formats using our built in filters. Take a look at our documentation on setting up a custom date:

    https://www.wp-timelineexpress.com/documentation/change-announcement-date-format/

    In your case, you would use a function similar to the following to limit the dates to only display the year:

    
    /**
     * The following function will alter the default date formats
     * and display them in the format '2016'
     */
    function custom_te_date_format( $date_format ) {
       $date_format = "Y"; // will print the date as 2016
       return $date_format;
    }
    add_filter( 'timeline_express_custom_date_format' , 'custom_te_date_format' );
    

    You’ll want to add that snippet to your themes functions.php file. IF you are unfamiliar with editing that file, you can use a plugin to add the snippet. One plugin we recommend to carry out the task is My Custom Functions.

    • This reply was modified 8 years, 5 months ago by Code Parrots.
    Plugin Contributor Code Parrots

    (@codeparrots)

    Hi @r,

    What version of WordPress do you have installed? I just did some testing on my end, and it appears that everything went through smoothly – without any issues. I updated the plugin, and then uninstalled, and re-installed a fresh copy from the www.ads-software.com repository.

    You can try uninstalling and re-installing if things are continuing to give you issues.

Viewing 2 replies - 511 through 512 (of 512 total)