Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wordpress Multisite #185

Closed
jk3us opened this issue Jan 31, 2015 · 7 comments
Closed

Wordpress Multisite #185

jk3us opened this issue Jan 31, 2015 · 7 comments

Comments

@jk3us
Copy link

jk3us commented Jan 31, 2015

In trying to import a single site that is part of a wordpress multisite instance, I had to make 1 small change in the source. In my case, I wanted to import the site that had the database table prefix 3_ (the id of the site is 3), but since multisite installations share a common set of users, and they are stored in the unprefixed users table, I just had to remove the #{px} for the users table on line 144 of importers/wordpress.rb, and it seems to have worked well. Having a configuration option that could handle this case would be pretty nice.

@parkr
Copy link
Member

parkr commented Jan 31, 2015

--multisite?

@jk3us
Copy link
Author

jk3us commented Jan 31, 2015

Is that a command-line switch? I don't see that in any docs or in the code. How would that be used?

@parkr
Copy link
Member

parkr commented Jan 31, 2015

@jk3us I'm proposing it :) It'd do what you describe – use the specified table prefix except for the users table.

@jk3us
Copy link
Author

jk3us commented Feb 2, 2015

Ah, sounds good. You'd need a way to specify which site, I guess by numeric id. I think you can have the installation prefix in addition to the site prefix, e.g. wp_3_posts.

@parkr
Copy link
Member

parkr commented Feb 2, 2015

@jk3us Hm, ok. I've never used a multisite before. Is the table prefix shared between them? So you have prefix_num_table and a separate users table?

@jk3us
Copy link
Author

jk3us commented Feb 2, 2015

Looks like it, here is the code that returns the database table prefix for a site. http://doc-wordpress.com/nav.html?wp-includes/wp-db.php.source.html#l727

@dirkkelly
Copy link
Contributor

I have opened a pull request that will allow you to import specific sites from 3.4.2

#203

@jekyllbot jekyllbot added the stale label Jun 6, 2016
@jekyll jekyll locked and limited conversation to collaborators Apr 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants