WordPress.org

Forums

the_Date() 3 letters Month (3 posts)

  1. vvaz
    Member
    Posted 6 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
    Member
    Posted 6 years ago #

  3. Nowell VanHoesen
    Member
    Posted 5 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.

    enjoy,

    nvwd

    -------------------
    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.

    nvwd

Topic Closed

This topic has been closed to new replies.

About this Topic