The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › Back End › How to query a post based on meta data in wordpress
I need to query posts by a custom field. Someone please help. I have no idea how to make this work.
The date should be today’s date and the format of dvdReleaseDate is yyyy-mm-dd
Here’s the code I’m working with….
=&meta_value=’ . time() . ‘&order=ASC’ ); ?>
However, it is not working properly. Please help.
The dvdReleaseDate is saved as a custom field with the plug-in More Fields in the Date Format:
“Date HTML5 input type, full functionality available in modern browsers. Alternative input: YYYY-mm-dd, i.e 2010-07-10”