Home › Forums › General Issues › Search string in ACF Post Relationship title › Reply To: Search string in ACF Post Relationship title
You cannot search the text in COURSES and have it also search MODULES. In order to find the title of MODULE when searching COURSE the content for MODULE that you want to be able to search must be part of the COURSE post in either the title, content of a custom field if you are searching custom fields.
What this means is that when you update a course post you must create an acf/save_post hook that gets all of the related modules and saves the titles of these modules into some other custom field related to course then you search this custom field.
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!
CPT registration is coming to ACF! We demoed the new feature during the most recent session of ACF Chat Fridays. Check out the summary for the details. https://t.co/k2KQ3WWBAz— Advanced Custom Fields (@wp_acf) March 7, 2023
© 2023 Advanced Custom Fields.