The documentation you linked to describes modifying a query so that you filter by a Toolset relationship, e.g. (from the documentation) query books but only return books that are linked to a specified writer post.
We will get back possibly multiple book posts, connected to one writer.
What order do we want to specify?
It is trivial to order by the title of the returned book posts by setting the orderby attribute to 'title'.
Here is a sandbox site and you can auto-login to it using the following link:
- hidden link
Can you please setup your post type with post-relationship or you can use existing one and tell me with one example parent and child post what with that keeping in mind what would be your expected results?
The topic ‘[Closed] Is it possible to "orderby" relationship when using in a WP_Query?’ is closed to new replies.