douzhannao5357 2013-09-03 11:34
浏览 39
已采纳

我应该使用Wordpress Multisite吗?

I'm about to start on a new project but I'm doubting if I should use Multisite for the company's structure or not.

The situation is as follows;

Corporation is based in a few EU countries, which each of the country websites have a consumer website and a professional website.

My thought was; Use multisite to make the consumer/professional switch and use WPML for each website. Things went fine so far. Yet; all websites have one shared product database. I'd like to make a custom post type "Products" and have them available in every language on every website (Consumer/Pro). Yet I cant find a way to have it (easily managable) share that product database and its relations.

So there's my doubt on using MultiSite, and as of yet, I dont see any other option to get what I want; Consumer/Professional sites, all with their own content, but with a shared product database.

  • 写回答

1条回答 默认 最新

  • douju5933 2013-09-03 22:14
    关注

    You can use the switch_to_blog() function within your product archive (http://codex.wordpress.org/WPMU_Functions/switch_to_blog). This would allow you to get the products from another site within the multisite. Then use restore_current_blog() to return back to your individual site.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 如何获取烟草零售终端数据
  • ¥15 数学建模招标中位数问题
  • ¥15 phython路径名过长报错 不知道什么问题
  • ¥15 深度学习中模型转换该怎么实现
  • ¥15 HLs设计手写数字识别程序编译通不过
  • ¥15 Stata外部命令安装问题求帮助!
  • ¥15 从键盘随机输入A-H中的一串字符串,用七段数码管方法进行绘制。提交代码及运行截图。
  • ¥15 TYPCE母转母,插入认方向
  • ¥15 如何用python向钉钉机器人发送可以放大的图片?
  • ¥15 matlab(相关搜索:紧聚焦)