Tell us what you are trying to do?
I have a view and custom field types on one hosting provider. I have a production site on another hosting provider. I want to pull the data from one site to the production site.
1. How do you call the data site in the code? Do you use the database name?
2. Does this use the view on the production site or the data site?
3. Does https matter? One site is https and one is http.
As you know Toolset doesn't support Multisite cross site sharing. A view created on one site is limited to use on that site.
What Luo has done was to write a script that will allow this, however given that this is custom code this is not supported under our Toolset support policy.
However let me answer your questions. 1. How do you call the data site in the code? Do you use the database name?
Based on Luo's example the code is called with a shortcode and the view name.
[switch_to_blog bid="3"]
Here display target subsite3 contents:
[wpv-view name="item-list"]
[/switch_to_blog]
BID = "3" is the ID of the multisite that you want to pull the view from. [wpv-view name="item-list"] is the name of the view on Blog 3
2. Does this use the view on the production site or the data site?
No this won't use the data on the production site as it is essentially just pulling the data from the site it was created on.
3. Does https matter? One site is https and one is http.
I dont believe this will.
The best plan of action here is to export the view from one multisite instance to the other rather than doing it in the example above.
You will need to use the ID. As mentioned this is custom coding and is not supported by our Forums so I cannot guarantee that it will work.
However to find the ID from the Network Admin, go to Sites > All Sites. When click to edit a site you'll be taken to a URL. The ID should be in the URL.