Support » Fixing WordPress » Order by meta values

  • Resolved secretja

    (@secretja)


    I have 3 meta fields related to dates.
    One is; year = 2012
    Second is; release_date = 14 November 2012
    And last is; release_date_db = 20121114

    I need to show posts from year 2012 sorted by release_date.

    I made this for now;

    query_posts('meta_key=year&meta_value=2012&order=ASC&posts_per_page=7');

    How can I order posts and by release_date or release_date_db ?

    THX

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Order by meta values’ is closed to new replies.