Display wordpress posts with custom date meta value, ordered by this date,

/ Published in: PHP
Save to your folder(s)

First you have to add a custom value with a correct date format.
The lines:
`AND CAST(wpostmeta.meta_value AS DATE) > '".date("Y-m-d H:i:s")."'
AND CAST(wpostmeta.meta_value AS DATE) < '".date("Y-m-d H:i:s", $date2)."' `
are only used to select dates between the current day and 2 months later

URL: http://www.kune-studio.com

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.