Home › Forums › General Issues › Relationship field for multisite › Reply To: Relationship field for multisite
Hi jacobdubail
I haven’t posted it anywhere but would be happy to share. However, I have since discovered that rather than using the relationship field, which involved using the complicated ajax hack, using the post field, possibly inside a repeater if you want to choose multiple is MUCH easier and can be done with a replica of the post field.Would you be more interested in that?
The only problem with it over the relationship picker is post types are created at run time. Therefore, if you have custom post types you want to pick from, you will need to create a cache of the list of post types. I have added a hook to my save post to create a cache which sits in my plugin folder and would be very happy to help you do the same if you don’t know how.
James
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!
ACF gives Rareloop greater control over the WordPress admin experience. See how in our case study. https://t.co/IFafQupmrl
— Advanced Custom Fields (@wp_acf) May 15, 2023
© 2023 Advanced Custom Fields.
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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.