I found a way to add html above the post type table which is generated by WP.
add_filter( 'views_edit-my_cpt', "custom_list_table");
function custom_list_table( $views ) {
/* Print form */ ?>
<form method="post" action="//your.url/?action=action">
<? wp_nonce_field( 'action-form', 'action_nonce' ); ?>
<label for="field1"><? _e('your label') ?></label><br />
<input id="field1" type="text" name="field1"><input type="submit" name="submit" id="submitbtn" class="button button-primary" value="<? _e('Go')?> ">
</form><?
return $views;
}
Related Posts:
- Pagination not working with custom loop
- WordPress 3.3 custom post type with /%postname%/ permastruct?
- Custom Taxonomy’s Label to change the text appearing in Appearance > Menu
- Breadcrumbs with Custom Post Types?
- order by meta_value serialized array
- bulk Update post_meta with default values
- Running a function on post content and CPT meta
- Get the post_type of current taxonomy or category page
- Output the slug and name of a CPT single post taxonomy term
- Slug for standard post post_type
- WordPress custom post type archive with description
- Custom post types – show specific posts
- Paginate_links links not working accordingly to how I do query the page
- Updating post title using wp_update_post
- Remove parent from custom post type
- Add nonexisting pages to navigation
- Multiple post type queries (with specific arguments for each)
- Associate custom post types with normal posts
- Troubles with making a custom template for posts
- Custom Post Type and Labels
- related posts – pulling tags from a specific post type
- WP 3.0.5 – Custom posts matching 2 taxonomies
- Custom Post Type Loop within Shortcode
- How do I make a custom taxonomy for a CPT appear inbetween title and editor boxes?
- How to add post_type=value when editing that post type in the WordPress admin?
- Change archive page template using pre_get_post
- Force documents to appear in Featured Image dialogue
- hide a certain custom field
- Custom post type redirected to homepage – how to debug
- Query with no terms uses index.php template instead of archive.php
- Sort by alphabetical order archive.php page
- custom taxonamy and post type
- Custom post type archive page – Posts overview – with one modal for multiple posts?
- Getting categories of posts under a custom taxonomy
- Is it possible to to use custom post type types on a page with the same slug somehow?
- WordPress custom post query with pagination
- Custom Post Fields at the beginning of a Custom Permalink
- Add term to custom post type on draft
- When an unregistered user submits a form for a custom post type, send an email that lets them delete their post
- Multiple tag cloud filtering
- Custom Post Type Category Link
- get_page_by_title() doesn’t retrieve my post
- Show all tags on custom post type
- Specifying meta field’s column type in Database using add_post_meta
- show custom value from frontend form in a post (custom post type)
- Front end access to a SQL data repository – recommended way?
- get_the_tag_list() returns bad links
- Merge page with custom post type
- FacetWP paging custom wp_query
- why post_class() function apply css classes to all other files?
- Looping Through Categories of a CPT
- What is the diference between Post Metadata and Queried Object
- custom post type make featured image box full width
- Cannot get custom posts by category
- Search for dates on custom post types
- Convert Custom Table Data Based Plugin To Be Searchable
- Why the_excerpt() function returns excerpt on the Home page and trimmed content in sidebar?
- list posts of two post types in a single template
- Control Loop Within Loop
- Multiple post types for BuddyBlog plugin [closed]
- Sets post_parent in custom post type posts automatically based on cpt->page name
- How to filter Multiple taxonomies with radio buttons
- Custom Post Type Date Based Archive URL rewrite [duplicate]
- Restrict access to custom post type based on its taxonomy terms
- Custom rewrite rule based on other custom post type title
- Sort custom posts by date and then by taxonomy
- Sending current featured image to email
- Display CPT Category List as Shortcode
- Custom post type sortable columns when column value is from a custom database value
- Correct way adding External classes to Custom Post type and output their methods to template
- Linking WordPress Post Types to Another
- publish_post action callback not executed, why?
- Tell wordpress to show a single page instead of an archive page
- Parent and child categories with their id in drop_down in CPT
- Templating advice sub posts of a CTP
- Post display in separate page [duplicate]
- Delete Post by User
- Two CPT: one is using part of the custom rewrite slug from the other
- Enable shortcodes on custom post type
- Only show current category post
- WordPress Contents Migration
- getting a blank login page :( any way I can fix this without having to do a clean install?
- Add a image to a post published on a CPT from the front-end
- Pulling in Related Posts based on Post Type array
- Custom Search not working
- Custom post type post taxonomies
- Have two (permalinks) urls for a same custom post type
- If taxonomy show class of active
- pre_get_posts action doesn’t work
- Query Posts From Multiple Post Types
- Bulk remove category from custom post type?
- Custom Post Types (Changing post style based on category)
- Page template anomaly
- Structure of custom post type / taxonomy?
- Notices when submitting custom post type from front-end
- Issue On Listing Woocommerce Parent Tag List
- show custom post’s post in two different divs [duplicate]
- Creating post custom field text area
- querying to custom field over ACF REST API
- Fatal Error WordPress Custom Post Type UI + WPML