• 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)”) ?>

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter salesbcocom

    (@sales4bcocom)

    The date should be today’s date and the format of Release date is yyyy-mm-dd

    Thread Starter salesbcocom

    (@sales4bcocom)

    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Sorting & filtering by meta data’ is closed to new replies.