Home › Forums › ACF PRO › what is the best solution for relating fields within 2 post types › Reply To: what is the best solution for relating fields within 2 post types
Unless I’m misunderstanding what it is you want to do, this isn’t something that can be done with ACF. It could be done, but you’re talking about linking content entered into a content editor and automatically linking that content to another post. What you need here is to add a filter on “the_content” (https://codex.wordpress.org/Plugin_API/Filter_Reference/the_content) that searches the content, finds the reverences and then adds the links, all of which would undoubtedly slow down your site as you get all the links and then search for each of the things you want to link.
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!
🚀 This week’s session of ACF Chat Fridays dips into the preliminary results of our first ever user survey. Don’t miss it! https://t.co/3UtvQbDwNm pic.twitter.com/kMwhaJTkZc— Advanced Custom Fields (@wp_acf) May 9, 2023
© 2023 Advanced Custom Fields.