Is the box not draggable like the rest in the post screen?
No Custom Fields has to be on the wide column.
Oh yes, so it does…
I suppose it makes sense, i can’t see how that would all fit in the right.. 🙂
Thread Starter
fl3x7
(@fl3x7)
hmm really, thats ashame, ive seen it done on a few of plugins so would have thought it possible.
Is there no hook etc that allows you to do this as i am part way through building a plugin. The reason i mentioned the custom field template plugin before was because my plugin will rely on this.
p.s yes the box is draggable but i need it to be in the right hand column by default for all users.
thanks you for your time
No wait, i was wrong, after much playing around it does move.. (cefm, sorry incorrect, it can be moved). To reproduce, click on the top left of the custom fields box, then drag, and try to place it just above something in the right column, it should then drop in fine (took a few tries, but it does do it)..
Looks a bit odd, but it can be moved to the right..
If you’re looking for a hook/function for the post screen boxes, see the following..
http://codex.wordpress.org/Function_Reference/add_meta_box
May also be of interest..
http://codex.wordpress.org/Function_Reference/add_post_meta
Thread Starter
fl3x7
(@fl3x7)
awesome think the add_meta_box is what im looking for. looks like il have to create my own box from scratch (rather than use the custom filed template plugin) as it seems that function has a $context parameter which will allow me to set it to the right or left.. woohoo
thanks for your help t31os_ !!!!
🙂
I was reading an article about it just the other day, so the function name was fresh in my head..
You’re welcome.. 😉
Thread Starter
fl3x7
(@fl3x7)
Yes it worked perfectly! Again thank you.
Just another question mate, my custom field box is a select box were users choose from a drop down menu.
Is it possible to have it so that once a selection is made the meta information is saved straight away, as opposed to just on the publish hook?
Even if it could be something as crude as as soon as the user selects an option it just saves it as a draft that would be fine, just trying to get that meta value into the db before the user hits publish because i want to run a query on the publish, but if the value hasnt been stored then the query will always return a Null value.
Any ideas. i know this is sort of not topic related so il create a seprate post after but just thought you might be able to help 🙂
Again thank you 🙂
fl3x7
You need to use ajax i’d imagine.
http://codex.wordpress.org/AJAX_in_Plugins
Not my field (ajax), but i’m sure it wouldn’t be too hard with a little experimenting…….
There’s a auto-save option with the custom field template plugin, does that help in this case?