WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Order by meta values (3 posts)

  1. secretja
    Member
    Posted 1 year ago #

    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

  2. esmi
    Forum Moderator
    Posted 1 year ago #

  3. secretja
    Member
    Posted 1 year ago #

    THX

    This helped me to get it working Link

Topic Closed

This topic has been closed to new replies.

About this Topic