Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I tried the_date, the_time and get_the_date to show todays date on the website. But wordpress takes latest post's date and publishes it. For example on the index page if the latest post was posted on 12 of August despite i placed that code on very top of the page it shows 12of august as date. also when i visit any of the single page it shows that post's date.

i need help on this.. thanks

and if necessary this is the header code

http://jsfiddle.net/AvMkY/

share|improve this question

closed as too localized by toscho Jul 19 '12 at 12:10

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

add comment

1 Answer 1

That's because that's what those functions do.

For example: http://codex.wordpress.org/Function_Reference/get_the_date

Use the PHP date() function

share|improve this answer
    
oh yes that is what i was trying to do. but tried to use WP :) thanks –  Emre Caglar Jul 19 '12 at 12:10
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.