Home › Forums › General Issues › Text component system with ACF possible? › Reply To: Text component system with ACF possible?
I would create a custom post type to hold the bits and then use a repeater with a post object field. Alternately you could use a relationship without the repeater field because the selected related posts can be ordered.
Bidirectional relationships will not work for repeater sub fields. But they would work with a top level relationship field.
You would not be able to edit the text from both ends, the text would only be editable by editing the custom post type that holds the bits.
If is possible that you could make it editable on both sides using the post object field in a repeater, but would be complicated. You would have to add custom JS and detect the post object field was changed and then use AJAX to get and populate another field like a textarea. Then you would need to create an acf/save_post action that transfered the content back to the post holding the text to update the other end.
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!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.