Tunc Satiroglu
asked 10 years ago

I would like to display the date under the post title after the tags as day, month, year format instead of x hours ago. I appreciate some help here.

1 Answers
DominicStaff
answered 10 years ago

Hi,
To resolve this issue, you can log in to Dashboard > Settings > General, then edit date format here. 
See the screenshot: http://prntscr.com/4phg8p
– you can refer the document guide here: http://codex.wordpress.org/Formatting_Date_and_Time
Hope this helps !

Tunc Satiroglu
replied 10 years ago

My date setting is already set as d/m/Y, but the date next to the tags under the post title still displays as either x hours ago or x days ago not the actual date of the post.

Dominic Staff
replied 10 years ago

To resolve this issue, you can open the functions.php file in the folder path "wp-content\themes\dw-focus". Find the line 331.
Replace the following code:
return $since .' ' . __('ago','dw-focus') ;
With new code:
// return $since .' ' . __('ago','dw-focus') ;
return date( get_option( 'date_format' ), $from );

Hope this helps !

Powered by DW Question & Answer Pro