wordpress 多站点问题 [英] wordpress multisite concerns

查看:33
本文介绍了wordpress 多站点问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我现在在部署 wordpress 多站点时面临的问题:

The issues I'm facing now on deploying wordpress multisite:

  1. 当启用父 wordpress 时(例如 http://www.example.com/multisiteparent/ 作为站点 A) 要成为多站点,我是否也
    需要在每个孩子中启用多站点网络设置
    网站再次在 wp-config.php 中?(我想知道我是否没有在儿童站点中启用网络
    (例如,http://www.example.com/multisiteparent/childsite/ 作为站点B) 当我点击子站点 wp-admin 的仪表板时,将没有网络面板(多站点 wp-admin 功能)导航回父站点 wp 仪表板.官方文档似乎没有提到这个设置.

  1. when enabling the parent wordpress (eg. http://www.example.com/multisiteparent/ as Site A) to become multisite, do i also
    need to enalbe multisite network setup in each one of the children
    site in wp-config.php again? (i'm wondering if i do not enable network in children site
    (eg. http://www.example.com/multisiteparent/childsite/ as Site B) when i click into dashboard of the child site wp-admin, there would be no network panel(multisite wp-admin feature) to navigate back to parent site wp dashboard. the official documentation seems like didn't mention this setting.

当我想将两个独立的 wp 站点(站点 A 和站点 B)迁移到多站点(A 作为父站点,B 作为子站点)时,哪种程序更好.
选项 1: 设置一个空白的 wordpress 多站点结构,然后将 wp 文件和 sqls(A 和 B)迁移到由干净的 wordpress 创建的带有 diff wp_ 和 wp_2_ 表前缀的表.这可能必须在迁移之前在 sql 中进行字符串替换.
选项2:从启用站点A开始成为多站点,然后创建一个空白站点子目录并将站点B迁移到创建的文件夹中(文件和sql替换)

which procedure is regarded better when i want to migrate two independent wp sites (site A & site B) into multisite (A as parent, B as sub-site).
option1: set up a blank wordpress multisite structure then migrate wp files and sqls(A & B) to the tables created by clean wordpress with diff wp_ and wp_2_ table prefixes. this might have to do string replacement in sql before migration.
option2: start from enalbing site A to become multisite, then create a blank site sub directory and migrate site B into the created folder ( files and sql replacement)

是否有任何现有的在线 wordpress 多站点演示有效非常擅长数据共享?它作为解决方案的使用范围有多广.

Is there any existing wordpress multisite demos online that worked very well on data sharing? how widely is it used as a solution.

正如我通过启用多站点发现的,自动创建的前缀,例如wp_2_options wp_2_posts .... 等在同一个数据库中.这会导致与 wordpress 插件不兼容?

As i found by enabling multisite, auto created prefix such as wp_2_options wp_2_posts.... etc inside the same database. will this cause imcompatibilites to plugins of the wordpress?

除了激活多站点共享之外的替代解决方案不同域的不同 wordpress 站点之间的表?

Alternative solutions other than activating multisite to share tables between different wordpress sites of diff domain?

谢谢你的建议.

参考:

推荐答案

问题太多了!:-)

  1. 您只能这样做一次.整个多站点安装只有一个 wp.config,而不是每个子站点一个.
  2. 选项 1 应该可以正常工作.最简单的方法(我一直这样做)是在 sql 文件上使用任何文本编辑器,并将 wp_ 替换为 wp_1_ 或 wp_2_ 或其他任何内容.然后将您的插件和主题复制到父文件夹(您没有单独的文件夹).然后使用像 Go Live Update URLS 这样的插件来更改您的所有网址您的媒体附件(多站点具有不同的上传文件夹层次结构).
  3. 不知道你在问什么.
  4. 一些插件不适用于多站点,但大多数可以.这取决于插件.
  5. 使用多站点是最简单的.您始终可以构建完全自定义的内容(使用您自己的数据库连接来打开您想要的任何共享表),但这需要大量工作.
  1. You only do this once. There's only one wp.config for the entire multisite installation, not one for each child site.
  2. option 1 should work fine. easiest way (i do this all the time) is to use any text editor on the sql file and replace wp_ with wp_1_ or wp_2_ or whatever. then copy over your plugins and themes to the parent folder (you don't have separate folders for each). then use a plugin like Go Live Update URLS to change all of your urls for your media attachments (multisite has a different folder hierarchy for uploads).
  3. no idea what you're asking here.
  4. a few plugins will not work for multisite, but most will. it depends on the plugin.
  5. using multisite is the easiest. you could always build something completely custom (using your own database connections to open up whatever shared tables you want) but that's a lot of work.

这篇关于wordpress 多站点问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆