Question
I'd like to find the time difference -preferably in hours- between post_date and post_date_gmt. I tried $age = date_diff(get_post_time(),get_post_time($gmt = true)); but this returns Warning: date_diff() expects parameter 1 to be DateTimeInterface, int given in C:xampphtdocstwp-contentthemesisingle.php on line 23 I didn't really understand the ...
0
, , 3 weeks 0 Answers 27 views

Question
I use a Wordpress Theme where the format date and time is directly coded in 2 formats : <?php the_time('d M'); ?> <?php the_time('H:i'); ?> What I want : Display the date and the time as defined in wordpress options I don't want to create ...
0
3 weeks 0 Answers 32 views