最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

multisite - Share contentsposts between sites in a WordPress 5.6

programmeradmin0浏览0评论

I have a client that installed Wordpress 5.6 with multisite enabled .They currently have four websites listing products they sell on the domains:





When my client updates a wp_post like Ibanez GRG121DX 6 string guitar, they need to do it four times, one for each of the websites.

How can my client update the product just once and have it syndicated to all four domains?

I see this question has been asked before, but they are all very old questions with old answers. I'm looking for an answer relevant to the year 2021.

Asked in 2017, not answered: How to setup shared content between main site and subdomain?

Asked in 2012, but not sure if it's still relevant? How Can I Centralize Content Usage and Approval in a WordPress Multi-Site installation

I have a client that installed Wordpress 5.6 with multisite enabled .They currently have four websites listing products they sell on the domains:

https://www.example
https://www.example.uk
https://www.example.ca
https://www.example.ae

When my client updates a wp_post like Ibanez GRG121DX 6 string guitar, they need to do it four times, one for each of the websites.

How can my client update the product just once and have it syndicated to all four domains?

I see this question has been asked before, but they are all very old questions with old answers. I'm looking for an answer relevant to the year 2021.

Asked in 2017, not answered: How to setup shared content between main site and subdomain?

Asked in 2012, but not sure if it's still relevant? How Can I Centralize Content Usage and Approval in a WordPress Multi-Site installation

Share Improve this question asked Jan 18, 2021 at 15:51 learningtechlearningtech 1971 silver badge14 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 1

In the multisite you can try the switch_to_blog() and restore_current_blog() functions.

Here the documentation: https://developer.wordpress/reference/functions/switch_to_blog/.

发布评论

评论列表(0)

  1. 暂无评论