Support

Account

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.

    https://www.advancedcustomfields.com/resources/bidirectional-relationships/

    https://support.advancedcustomfields.com/forums/topic/bidirectional-relationships-and-multiple-post-types/