Profile
Achievement
Mat_'s Recent Snippets
- All /
« Prev 1 Next »
Snippet to show a simple use of the transient API when querying posts.
0
863
posted 12 years ago by Mat_
PHP
Display wordpress posts with custom date meta value, ordered by this date, with a defined taxonomy
0
1054
posted 14 years ago by Mat_
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 d...
0
1336
posted 14 years ago by Mat_