WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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: http://codex.wordpress.org/Plugin_API/Filter_Reference#Administrative_Filters

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.