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
Related Posts:
- Custom post status not working
- Admin Post Update Redirection to Posts Screen
- Exclude add_filter from the admin
- White screen error for a custom theme
- How do you output custom code between posts in the loop?
- How to get Custom Post ID by adding filter to child theme’s function
- How to customize admin posts based on the user who is logged in
- How can I create a custom meta box to add an mp4 video to a page?
- Is there a way to have the view link on manage posts page to open in a new window or tab?
- How to customize a permalink (URL) structure?
- On update or create post redirect to current post position in list
- Cannot save CPT meta box
- Allow users to create posts without logging in?
- Custom post type isn’t working
- Custom Post Type & Custom Menu Walker to append custom class for active post types
- Add an Outside Wrapper to my Header and Make it Full Width
- Custom post type’s posts are not showing anywere but in xml sitemap
- post_content is stripping HTML when adding a new post? [closed]
- Post visibility option to theme front-end for author to select?
- How do I disable the built-in editor and automatically configure the properties of new pages?
- Custom Form / Search with Custom Post Type Data
- Stored meta from attachment, video length?
- Create 2-layered dropdown menus for custom taxonomy and custom post type
- Collection of fields in a single post
- Custom post type functions.php if statement on action
- How to display *block number* instead *date value* on WordPress posts?
- How to post twitter like updates on wordpress
- How To Enable Block Editor (Gutenberg) for Existing Post Type via functions.php
- Show Two custom Post type and their posts on category page
- How to get all `supports` attributes by post type?
- How to create an advanced filter search?
- GravityForm: Populate Dropdown with custom post type [closed]
- Custom search for custom post meta with pre_get_posts interferes with WP search
- Loading all files within a directory
- Assigning the same custom meta box to multiple post types
- Add html to cpt main page / admin edit.php
- Modifying Custom Post Type after registration (will it affect content?)
- Custom Post Types relationships
- apply filters only to specific post listing without check the url parameters
- Dynamically add / duplicate custom meta in custom post types
- WordPress if in term*
- Custom post type and body_class: Remove “blog” class
- Setting posts per page in query_posts
- How to insert content from another Custom Post type into Post?
- How to retrieve category NAME instead of ID in a function with a taxonomy custom field?
- Get rewrite slug of custom post type in template
- Create a post in custom post type using field in registration form after users submit form
- Weird problem happening with custom taxonmy when creating/updating posts
- A good strategy to print custom posts (offer) that are checked inside the metabox of a post?
- Placeholder in HTML editor text area?
- Filter categories of posts with checkboxes
- Deleting Custom Post type data using mySQL command
- Copy custom field value to post title
- Insert HTML inside link in a walker
- Delete link on single-custom.php with redirection
- right_now_content_table_end function not working?
- How to structure a site with product variations pages?
- WooCommerce product search titles only
- Notice: Undefined index: suppress_filters
- CPT: if more than X images are in post, use pagination
- Remove rows in the manage post/page view
- Custom Taxonomy Permalinks Redirection
- Add custom column in custom post type edit page
- Getting rid of /my_custom_post_type/ in the single view URL
- Custom post type menu missing after 3.0b2 -> 3.1.2 upgrade
- Custom Post Type – List all attachments on Edit Screen
- Access $post object when adding custom columns to list table
- wp_insert_post generates endless posts
- Remove standard meta boxes from custom taxonomy
- How to only show posts assigned to current user, only in certain post types
- Group posts by custom post type
- Custom Page that comes with preloaded content for the user
- What’s the difference between same wp functions get_posts(); functions in different form?
- I did group my search results by post type, but how can i give each of them its own order?
- Dequeue scripts and styles only for specific custom post type
- Function to display custom post type on front page makes menu items dissapear
- How inefficient is it to use a Custom Post for 4-5 sentences & pull all to 1 page?
- Add acf field in title (admin table)
- custom post type not showing in menu
- Show category ID on custom post type
- How to check post type (to include custom css)
- Plugin: register custom post types, child ready and performance best practices
- Display only one post each WEEK
- Custom Post Type with Templates using Meta Boxes?
- Adding HTML tags or css classes to admin columns
- How to Mass Delete Images from Media Library
- Can I list a custom post type within another custom post type in the admin area?
- Change custom post type slug from plugin options
- Create a page that will be used to create a custom post type
- Customize my custom taxonomy table in Admin panel
- Permalink structure by Post Meta value
- Get parse_query filter to return slug instead of id
- How to integrate video slide using custom post types?
- Custom Post Type Nav to Subpage
- Can’t edit custom post type
- Selecting a post in Dashboard
- Hard-coding custom menu elements for menu manager
- Custom admin post.php page
- A question on creating filters for custom posts using taxonomy
- Conditional Query of Custom Post Type and custom taxonomy