We are creating “master” custom posts on the first site of a multisite setup.
All additional sites will be subsites/microsites. We have a custom post post_template that a superadmin will add on the first site (the main site).
On a my_post custom post type, I have a post_object field. A site admin from another site will need to select one post_template when adding my_post on his site.
Basically, the idea is to use that custom post as a master / template, to pre-populate content that subsite admins may not edit etc.)
We’ll also need the same for Relationship fields. What would be the way to do this? Is there a hook to enable global queries etc.?
Thanks a bunch!
Do you mean that you want to populate a relationship field from posts on the main site?
Yes, sorry if that wasn’t clear 🙂
ACF cannot do this by itself.
There is this, but I don’t know if it will work for your purposes, I haven’t tried it: http://support.advancedcustomfields.com/forums/topic/new-addon-for-multisites/
If that doesn’t work then the best choice would be to use a standard select field rather than a relationship field. Then you can dynamically populate the select field. http://www.advancedcustomfields.com/resources/dynamically-populate-a-select-fields-choices/
A dropdown will be just fine yes – the post_object field has an ajax call and I didn’t know how to override the results. Thank you!