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 🙂

2 Answers
2

The only real chance you got is to hook into admin_notices, which is above the post-new.php page title & icon:

function  wpse27700_above_title_content()
{
    ?>
    <style>
    /* 
    You might need to attach some styles here,
    to not get into the admin notices styles 
    */
    </style>

    <h1>TEST</h1>
    <p>This is a test message</p>
    <?php
}

// This is needed to only hook on the post new & edit screens.
function wpse27700_admin_head()
{
    add_action( 'admin_notices', 'wpse27700_above_title_content', 9999 );
}
add_action( 'admin_head-post-new.php', 'wpse27700_admin_head' );
add_action( 'admin_head-post.php', 'wpse27700_admin_head' );

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *