We have a multisite.
Site 1 is our main site
Site 2 is our blog site
I would like to add a section on Site 1 that pulls in the 3 most recent posts from Site 2.
Any ideas please.
Thanks
Christine
We have a multisite.
Site 1 is our main site
Site 2 is our blog site
I would like to add a section on Site 1 that pulls in the 3 most recent posts from Site 2.
Any ideas please.
Thanks
Christine
Hello Christine,
Thank you for the inquiry.
This should be possible with the Looper Provider > External API option. Set the endpoint to /wp-json/wp/v2/posts of Site 2 to retrieve the posts. If you need to retrieve only 3 of the most recent posts, you can add the per_page request attribute and set the value to 3. Please check the documentation below for more info.
– https://theme.co/docs/loopers#external-api-looper
– https://theme.co/docs/external-api-integration#request-types
Let us know if you need more info.
Best regards.
Thank you this worked great!
I have another multisite query please.
i have a global block/component on site 1 that I would like to bring in on site 2 within a blog post. Site 2 is not running on themeco.
Your help is much appreciated.
Glad to know that this is working. Unfortunately, global blocks/components cannot be imported into a site that is not using X or Pro. You may need to recreate them from scratch using the available tools on the other site. Let us know if you have more questions.
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.