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 c语言怎么用printf(“\b \b”)与getch()实现黑框里写入与删除?
  • ¥20 怎么用dlib库的算法识别小麦病虫害
  • ¥15 华为ensp模拟器中S5700交换机在配置过程中老是反复重启
  • ¥15 java写代码遇到问题,求帮助
  • ¥15 uniapp uview http 如何实现统一的请求异常信息提示?
  • ¥15 有了解d3和topogram.js库的吗?有偿请教
  • ¥100 任意维数的K均值聚类
  • ¥15 stamps做sbas-insar,时序沉降图怎么画
  • ¥15 买了个传感器,根据商家发的代码和步骤使用但是代码报错了不会改,有没有人可以看看
  • ¥15 关于#Java#的问题,如何解决?