Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Nicolas Lemoine

    (@nlemoine)

    Hi,

    %time% uses the format set in general options. See Settings > General.

    N.

    Thread Starter cirowp

    (@cirowordpress)

    Hi ….hellonico ??
    In Settings > General the date format is correct: d m y
    But when I use your plugin the date format is something like this: 2016-01-18 20:55:45

    Have you got any idea about this issue?
    Is there another way to solve the problem? (I say not Settings>Generl)

    Thanks in advance

    Plugin Author Nicolas Lemoine

    (@nlemoine)

    Hi,

    Sorry, I can’t figure out how this can be possible. The code that generate the date is pretty straightforward:

    date_i18n( get_option( 'date_format' ) )

    And should reflect the date format used in general settings.

    Try creating your own tag:

    add_filter('wpbe_tags', function( $tags ) {
      $tags['my_date'] = date_i18n('d m y');
      return $tags;
    }

    And use %my_date% in your template.

    N.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘date format’ is closed to new replies.