An example of it is:
[text]2014-05-02 22:20:18[/text]
How do I convert that, to something like: 2 May 2014, 22:20:18 ?
I thought this would work:
Code: Select all
echo date("D, d M Y H:i:s T",$row->post_date);Moderator: General Moderators
Code: Select all
echo date("D, d M Y H:i:s T",$row->post_date);Code: Select all
echo date('D, d M Y H:i:s T', strtotime($row->post_date));Code: Select all
$dt = new DateTime($row->post_date);
echo $dt->format('D, d M Y H:i:s T');You don't mean has_post_thumbnail, do you? Rather an inline image? I don't know of anything built in, but you could do a preg_match on <img in the post itself.simonmlewis wrote:Do you happen to know if there is anyway in Word Press to identify in MySQL code, if a post has an image attached?