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!
Are you building WordPress sites with ACF and @BeaverBuilder, and wanted to use your ACF Blocks in both the block editor and Beaver Builder?— Advanced Custom Fields (@wp_acf) May 10, 2023
The BB team recently added support for using ACF Blocks in Beaver Builder. Check it out 👇https://t.co/UalEIa5aQi
© 2023 Advanced Custom Fields.