the_Date() 3 letters Month (3 posts)

  1. Valerio Vaz
    Posted 7 years ago #

    how can i display only the 3 letters from a month (like DEZ, OCT, APR) on wordpress the_date() function ?

    Or shall i use another tag ?

  2. iridiax
    Posted 7 years ago #

  3. Nowell VanHoesen
    Posted 6 years ago #

    I just ran into the same issue. php's date table shows that 'M' = A short textual representation of a month, three letters.

    I tried it within the the_date('M') and nothing was displayed.

    I tried it in the_time('M') and it was displayed.

    So, the_date doesn't support displaying the short textual representation of a month, but the_time does.



    I had 2 the_date functions within the same loop. The first I had displaying the day, the second the 3 char month. The second displayed nothing. When I changed the second the_date to the_time the 3 char month was displayed. I just tried making the first the_date display the 3 char month with success.
    So, the second call to the_date didn't function properly.


Topic Closed

This topic has been closed to new replies.

About this Topic