Home › Forums › General Issues › Order by option within a post object field › Reply To: Order by option within a post object field
You cannot sort posts by a meta value attached to a different post. You can only sort posts by meta fields attached to the post you are sorting. There simply is not a way to do this in WP.
posts you are sorting
=> meta values of these posts <= you can sort by these
=> Related post
=> meta values of related posts <= you cannot sort the first level posts by this
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.