I need to query posts by a custom field. Someone please help. I have no idea how to make this work.
<?php query_posts("meta('ReleaseDate')<=date(yyyy-mm-dd)") ?>
I need to query posts by a custom field. Someone please help. I have no idea how to make this work.
<?php query_posts("meta('ReleaseDate')<=date(yyyy-mm-dd)") ?>
The date should be today's date and the format of Release date is yyyy-mm-dd
Here's the code I'm working with....
<?php query_posts( 'meta_key=dvdReleaseDate&orderby=meta_value&meta_compare=>=&meta_value=' . time() . '&order=ASC' ); ?>
However, it is not working properly. Please help.
This topic has been closed to new replies.