Hi all,

I'm trying to create my Wordpress plugin admin page using metabox's. Using add_meta_box() and do_meta_boxes() I can create the boxes and they nicely reposition, however I am struggling to find a way to save the order.

I was wondering if there was a callback for when a reordering takes place, similar to jQuery UI's sortable plugin? Basically I want to be able to make an ajax call to save the order everytime a box is moved.

How is this done? Or am I thinking about it in the wrong way...?

Thanks.

Recommended Answers

All 2 Replies

Member Avatar for LastMitch

I'm trying to create my Wordpress plugin admin page using metabox's. Using add_meta_box() and do_meta_boxes() I can create the boxes and they nicely reposition, however I am struggling to find a way to save the order.

Are you using this code:

http://codex.wordpress.org/Function_Reference/add_meta_box

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.