Wordpress Custom Query

Posted by InnateDev on Stack Overflow See other posts from Stack Overflow or by InnateDev
Published on 2010-03-11T19:14:04Z Indexed on 2010/03/11 20:44 UTC
Read the original article Hit count: 207

Filed under:
|

I have posts that use a custom field for start date and end date. Query_posts returns an array of posts that exist in the category I'm filtering. How do I query posts using this custom field that has date i.e. 03/11/2010 and not the full array. Pagination works on the full array so it returns all posts. I can use an if else to only show the posts newer that today, then pagination doesn't work. Would I have to build a custom mysql query?

© Stack Overflow or respective owner

Related posts about Wordpress

Related posts about meta-compare

  • Wordpress Custom Query

    as seen on Stack Overflow - Search for 'Stack Overflow'
    I have posts that use a custom field for start date and end date. Query_posts returns an array of posts that exist in the category I'm filtering. How do I query posts using this custom field that has date i.e. 03/11/2010 and not the full array. Pagination works on the full array so it returns all… >>> More