WordPress.org

Ready to get started?Download WordPress

Forums

How to sort WP_Query result based on a custom field value (1 post)

  1. tango
    Member
    Posted 6 years ago #

    Hello,

    I've posts with associated custom fields.

    I would like to sort the results of WP_Query based on a custom value related to a certain custom key.

    Is this possible or should I write a custom query like in this approach:
    http://codex.wordpress.org/Displaying_Posts_Using_a_Custom_Select_Query

    Thanks, Sergio

Topic Closed

This topic has been closed to new replies.

About this Topic