• Resolved eckiwatong

    (@eckiwatong)


    Hi,
    I want to create a list of all post from a custom post type. In this list I also need the date, which works fine so far. Only that I would need to change the date format.

    This is the part I use for the date: print $r[‘post_date’]

    Which gives me this format: 22 October, 2014
    I would need this: 22.10.2015

    Any help would be very much appreciated since I tried everything for the last hours :-(((

    Thanks

    Ecki

    https://wordpress.org/plugins/custom-content-type-manager/

Viewing 1 replies (of 1 total)
  • Thread Starter eckiwatong

    (@eckiwatong)

    Finally found it …
    Just in case someone else is looking for the same thing:

    Within the args you can use $args[‘date_format’] = ‘d.m.Y’;
    and change it to pretty much whatever you need.

    Cheers

    Ecki

Viewing 1 replies (of 1 total)
  • The topic ‘Please help with date format CCTM’ is closed to new replies.