Home › Forums › General Issues › How to query books (CPT) by author (relationship) › Reply To: How to query books (CPT) by author (relationship)
There is a tutorial on doing this type of query here https://www.advancedcustomfields.com/resources/querying-relationship-fields/
This can be made easier by creating a bidirectional relationship field, if it’s not too late to do so. Add this would mean updating every post with a relationship after the code is added.
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!
Plugin boilerplates can do some of the heavy lifting during initial development. We look at four options to speed up your plugin creation. https://t.co/ZtMsdBxAHw— Advanced Custom Fields (@wp_acf) June 5, 2023
© 2023 Advanced Custom Fields.