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"?
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"?
because d is a special character in the date function... you have to put it as \d for it to work
To help you solve more date problems:
http://codex.wordpress.org/Template_Tags/the_date
http://codex.wordpress.org/Formatting_Date_and_Time
This topic has been closed to new replies.