WordPress.org

Ready to get started?Download WordPress

Forums

Trouble customizing the date (3 posts)

  1. resg
    Member
    Posted 9 years ago #

    I have the following code for my post date:
    <h2 class="date-header"><?php the_time("l, j de F de Y") ?></h2>

    But on my blog, it comes out like this:
    Segunda, 21 21e Março 21e 2005

    Why the "de" on the code is turning out like "21e"?

  2. Minna
    Member
    Posted 9 years ago #

    because d is a special character in the date function... you have to put it as \d for it to work

  3. Lorelle
    Member
    Posted 9 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.