Home › Forums › Backend Issues (wp-admin) › Query relationship values with Relevanssi › Reply To: Query relationship values with Relevanssi
This is a great question, and one which i’m sure is possible, but one that I have no idea how.
My first though is one which has 2 parts:
1. Filter query
If you searched for ‘Elliot Condon’, find the post with this title (the bio post). Now you have an id of 123. Use this ID to modify the search parameter so that your search is for 123 (maybe you can target this as a meta_query only?).
This should hopefully find books that have an author of 123.
2. Filter the results
If the above query works, then you can swap out ‘123’ for ‘Elliot Condon’ and your results should read correctly.
This will be pretty complex and will require a lot of debugging and searching through source code, but it’s worth a shot.
Also, I would ask the guys over at Relevanssi what their thoughts are.
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!
Accordions are a great way to group related information while allowing users to interactively show and hide content. In this video, Damon Cook goes in-depth on how to create an accessible accordion block using ACF PRO’s Repeater field.https://t.co/RXT0g25akN— Advanced Custom Fields (@wp_acf) March 2, 2023
© 2023 Advanced Custom Fields.