i would like to add an image above the post title… in the old days i would change that directly in wordpress code but thats not very affective.. you know, upgrades and such.
is ther a way using add_meta_box or some othere way to add a box directly above the post title?
tried this
Priority of Meta Box for Custom Post Type
BUt that didnt work.. help Please 🙂
The only real chance you got is to hook into
admin_notices
, which is above the post-new.php page title & icon:My answer is assuming you mean in the admin area on the post editing screen.
Unfortunately there are no hooks to add things above the title.
I did track down a (very hacky?) way to do this, however, by looking at the code for Premise (a landing page plugin by Copyblogger Media).
Hook into something like
dbx_post_sidebar
, which is below all the post editing stuff and metaboxes. Echo out your image with a style attribute containingdisplay:none;
Then using jQuery you can remove the image and place it above the title. I just hooked into
admin_head
to do this, but you can also enqueue a separate js file or whatever.Not the most direct solution, but it works. As a plugin: https://gist.github.com/1193612