I recently found myself in need of being able to copy a PageBuilder Wordpress page to another site in my Wordpress site network (happens in multilanguage networks...). Normally I would simply expect to switch to "code view", copy code, create new page in other site, paste code. Unfortunately, PageBuilder does not provide a "code view". Here's how I still managed to not have to recreate the layout in the new site myself:
Prerequisites: You need SQL access (PHPmyAdmin or whatever floats your boat)
Note: I am still working on Wordpress 4.7.12, not tested on any more recent versions.
1) Save and close original page.
2) Switch to destination network site
3) Create page (name it), leave it empty, close it.
4) Open your mySQL administration console.
5) Find table wp_posts (prefix might be different depending on your setup)
6) Browse to your original post entry. There might be several versions if you use versioning, go to the most recent one (duh). Open / edit entry.
7) Copy contents (contents of post_content).
8) Find your wp_post table for the destination site (probably different prefix if in same database).
9) Find the page you created as destination page in step 3.
10) If there are multiple versions, delete all revisions.
11) Open / edit, paste what you copied into post_content. Make note of post id. Save.
12) Go to wp_postmeta (of destination site). Browse to entries related to post id. Check if there is a "_edit_lock" entry on your post. Delete that. (I simply deleted all entries belonging to that ID, after all there is not much to loose if you just created the post).
13) Go back to Wordpress. Open destination page.
14) Switch to PageBuilder view, it will ask you if you want to copy the contents to PageBuilder. Accept that.
15) et voilĂ , that should have worked.
Prerequisites: You need SQL access (PHPmyAdmin or whatever floats your boat)
Note: I am still working on Wordpress 4.7.12, not tested on any more recent versions.
1) Save and close original page.
2) Switch to destination network site
3) Create page (name it), leave it empty, close it.
4) Open your mySQL administration console.
5) Find table wp_posts (prefix might be different depending on your setup)
6) Browse to your original post entry. There might be several versions if you use versioning, go to the most recent one (duh). Open / edit entry.
7) Copy contents (contents of post_content).
8) Find your wp_post table for the destination site (probably different prefix if in same database).
9) Find the page you created as destination page in step 3.
10) If there are multiple versions, delete all revisions.
11) Open / edit, paste what you copied into post_content. Make note of post id. Save.
12) Go to wp_postmeta (of destination site). Browse to entries related to post id. Check if there is a "_edit_lock" entry on your post. Delete that. (I simply deleted all entries belonging to that ID, after all there is not much to loose if you just created the post).
13) Go back to Wordpress. Open destination page.
14) Switch to PageBuilder view, it will ask you if you want to copy the contents to PageBuilder. Accept that.
15) et voilĂ , that should have worked.
Comments
Post a Comment