I want to get all of the comments for a given post and return them in order by a meta_key's value desc high to low.

Doesnt look like i can do this with get_comments() like i would like to. This will give me the comments for the post but not ordered like i would like to see.

Any help with this would be great.

1 Answer 1


From the look at code WP_Comment_Query class, used internally by get_comments() allows orderby argument to be set to 'meta_key' string to sort by key in argument of same meta_key name.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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