I don’t understand why on home page the date of posts is displayed randomly. In the same widget, for example home slider, some posts display the date and not others. I’ve got the same issue with the grid widget. The problem is only on the home page, when I go to a post page, it’s ok!
Thanks for your help..
The date only occurs once per day. ie for 2 posts on the same day one will be without the date. It is a WP function. To get what you want replace with the php function get time, You can open the wp-content -> themes -> dw-focus -> inc -> widgets -> dw-focus-news-slider.php file and find the line 101.
Instead of using:
Use the following:
the_time('F j, Y');
See the screenshot: http://prntscr.com/7hikd0
NOTE: You can find
the_date(); in your template folder in one or many of the .php files. Simply replace where desired.
Hope this helps !
Please login or Register to submit your answer
replied 8 years ago
Great it works perfectly ! Thanks for your response