Mat_


Member since 09/12/2010

5 snippets

1582 profile views

0 Comment(s) Posted

View their favorites

Profile

Achievement

first submission:submitting first snipplet

Mat_'s Recent Snippets



« Prev 1 Next »
Snippet to show a simple use of the transient API when querying posts.
0 629 posted 11 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 1146 posted 13 years ago by Mat_
1 722 posted 13 years ago by Mat_
« Prev 1 Next »