[wp-hackers] Exporting Menus

Curtis McHale curtis at curtismchale.ca
Wed Sep 1 03:19:46 UTC 2010


I'd love it if you could just export the whole site along with posts and 
all of the settings (including menus).

Mike Schinkel wrote:
> On Aug 31, 2010, at 10:40 PM, Andrew Gray wrote:
>> We just launched two sites in two days and I just got done with the same problem twice.
>>
>> How do I move the menus (WP 3.0) from one site to another.
>>
>> Here is the example for adding a menu via a function:  http://new2wp.com/snippet/register-and-create-new-nav-menus-with-default-menu-items/
>>
>> We looked at the code for creating a menu via a function and it is pretty straight forward,  but how do I build that array from an existing menu structure.   We looked at doing it via straight SQL but it looked risky.  Trying to Walk the menu and get menu items seems like the only way to do it.
>>
>> Does anyone have anything that can export a menu from one site, so it can be imported into another.
>>
>> I keep trying to build tools that help us move sites from Development to Staging to Production in a more automated way, without having to replace the entire DB, but I keep running into road blocks.    Right now the menus, widgets and SIte URL coded into the DB are my three major sticking points.
>>
>> There are alot of ideas out there on how to deal with some of these, but I wanted to see what the group had to say about this.
>>
>> Are these issues for other people as well?
>
> Yes, very much.  I discussed with Andrew Nacin at WordCamp Savannah but he didn't seem too concerned about it; maybe I read him wrong.
>
> Also, Beau Lebens though it wasn't an issue for many of the core developers given they are not really deploying client sites (except Mark.)
>
> Maybe those who are need to collaborate on solving this problem and get some critical mass around the solution(s) first?
>
> -Mike
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers

-- 
Curtis McHale

604.751.3482
http://curtismchale.ca
http://twitter.com/curtismchale
http://ca.linkedin.com/in/curtismchale



More information about the wp-hackers mailing list