Sign up ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

enter image description here

How can I add custom HTML/PHP file into head where custom post-type list showing like this ?

Any Wordpress function can do this ? or I can only do by JS(jQuery) to append my custom content ?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

If its okey you can hook into admin_notices. Like this:

Change post_type to the real post_type name.. I assumed it would be "program".

function wpse_76471_add_html() {
    global $pagenow ,$post;

    if( $post->post_type == 'program' && $pagenow == 'edit.php' ) {

        $output = '<div class="my-div">';
            $output .= '<h2>'. __('My custom content (HTML/PHP)', 'program') .'</h2>';
        $output .= '</div>';

        echo $output;

The div will be above the title... Hope its okay. Maybe there is another hook you can use:

share|improve this answer
That is !!! thanks :D – l2aelba Dec 18 '12 at 10:23

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.