Take the 2-minute tour ×
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
add comment

1 Answer

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;
    }
}
add_action('admin_notices','wpse_76471_add_html');

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
add comment

Your Answer

 
discard

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.