Justin Sternberg @Jtsternberg
Southport, NC, USA | http://about.me/jtsternberg

August 2012

Ray Rice, Eli Manning, Ryan Matthews, RG3, Victor Cruz, Vernon Davis, etc. not bad. http://t.co/FwMKJARc via @nflfantasy

10:00pm Aug 31st 2012 view on twitter

@norcross Definitely agree.

1:10pm Aug 31st 2012 view on twitter

@norcross right.. when there’s no associated WP content, it saves a title.

1:09pm Aug 31st 2012 view on twitter

@norcross that metadata is there as well. ‘_menu_item_object’ is the post-type.

1:08pm Aug 31st 2012 view on twitter

@norcross the nav_menu_item object’s post-meta item labeled ‘_menu_item_object_id’ is the associated object ID.

1:03pm Aug 31st 2012 view on twitter

@norcross that code gets me this output: http://t.co/AxnqVysE

1:00pm Aug 31st 2012 view on twitter

@norcross right, (except with “custom” nav items). the get_post_custom part is the part that matters.

1:00pm Aug 31st 2012 view on twitter

@norcross http://t.co/fnsOrgp8 seems to contain the data I would need, no?

12:58pm Aug 31st 2012 view on twitter

@JS_Zao @wp_smith @norcross I like JSON. for the import, if it were me, I’d do something like my instagram importer. http://t.co/Nmr0HZQ6

12:44pm Aug 31st 2012 view on twitter

@norcross will do. definitely have me intrigued now.

12:27pm Aug 31st 2012 view on twitter

@JS_Zao @wp_smith @norcross not necessarily. Didn’t have a particular method in mind.

12:15pm Aug 31st 2012 view on twitter

@norcross foreach( get_post_types() as $pt ) {
get_page_by_title( $page_title, OBJECT, $pt );
}

or something

12:15pm Aug 31st 2012 view on twitter

@norcross I’ve definitely not looked at the nav menu cpt, so may be speaking out of turn.. but…

12:13pm Aug 31st 2012 view on twitter

@norcross Well I’m definitely sure it will be tricky. :) what about using get_page_by_title()?

12:12pm Aug 31st 2012 view on twitter

@JS_Zao @wp_smith actually checking it out right now. http://t.co/wfYkzgMj

12:00pm Aug 31st 2012 view on twitter

@norcross For instance.. I often make custom pages/cats etc JUST for the menu.. would love to export and import to dev site (from local).

11:55am Aug 31st 2012 view on twitter

@norcross yah, pretty much.

11:53am Aug 31st 2012 view on twitter

@norcross I just want the exporter to grab the content that is associated with the menu.

11:53am Aug 31st 2012 view on twitter

@norcross right, but you would have to select “all content” in the export options which i don’t want.

11:53am Aug 31st 2012 view on twitter

@wp_smith @JS_Zao hmm.. maybe not.. 4 people say it’s broken.

11:51am Aug 31st 2012 view on twitter

  Fast, secure WordPress hosting is provided by WP Engine.