I'm using the_time function to print the current date on my site. The problem is, that it's returning post or page creation times on pages other than the front page.
Can I force it to print the current time on all views?
|
I'm using the_time function to print the current date on my site. The problem is, that it's returning post or page creation times on pages other than the front page. Can I force it to print the current time on all views? |
|||
|
|
|
the_time() function is a WordPress built-in function to display the time of the post creation. So if you want to display the current date and time you need to use php function date something like this:
Hopes this helps. |
|||
|
|