test a date field in query_posts
-
Hi there,
I use CPT ‘specials’ with a custom field ‘special-end’ (date)
I make a query to display these posts
$args = array( 'post_type' => 'specials', 'orderby' => 'special-end', 'order' => 'ASC', 'posts_per_page'=> '12', );But how could i only get posts where ‘special-end’ is greater than today ?
Thanks for your help.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘test a date field in query_posts’ is closed to new replies.