I am trying the way to sort post from custom field numeric value.

Here is my query:

query_posts( 'cat=2684' );

how to tell to use the custom field "sort_number" value

1 Answer 1


To sort your posts by a numeric value in a custom field your query would look like this:


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.