Regarding the “Add new” part, here’s an example that I assume will help you. I haven’t used WP_List_Table so unfortunately I can’t comment much on that. But based on the class reference I’d guess you’d need to use the get_columns()
method.
Using the code below you should be able to generate an url that you can use as href
for an a
tag. You can then render the a
wherever you need it to be.
admin_url('post-new.php?post_type={post_type}');
When clicked, the genereated url should take the user to “Add new {post_type}” editing view.
Example copied from, How to get new post URL?
Related Posts:
- Change order of custom columns for edit panels
- How to create Custom filter options in wp_list_table?
- Fatal error after 4.4 upgrade class-wp-list-table
- How to remove _wp_http_referer from URL when using WP_List_table?
- wp_list_table bulk action button is not working – no submit
- How to handle sql with Custom List Table Example
- WP_list_table add custom row action
- Removing sorting option for columns on the post lists page
- Remove Admin Notice on page refresh
- Custom WP_List_Table: How to create an unapproved row?
- Undefined index: hook_suffix
- Accepting certain HTML tags in WP List Table column data
- How to implement WP_List_Table functionality for custom plugins (OR any substitution for wp_list_table plugin) for bulk action
- WP_List_Table bulk actions notice & warning
- Best Alternative to WP List Table
- Inserting Mysql queries into array using wp_list_table class
- Customize WP_List_Table inside admin panel
- `bulk_edit_custom_box` mess the input fields
- Form element deleted from first row of WP_Lists_Table
- upgraded to wp 4.0 – getting convert_to_screen() errors with WP_List_Table
- WP_List_Table default orderby is numeric
- Index of row in WP_List_Table
- How to remove the bottom table headers (column names) in WP_List_Table?
- how to make custom link in wordpress
- Admin Table Filtering not Working for Custom Post Type
- wp_list_table multiple checkboxes
- Strange font-style / font-weight on CPT list columns screen
- How to sort posts without featured images in the WordPress Dashboard? thanks
- WP_List_Table can’t create filter link
- Bulk Action in wp_list_table
- How do I get WordPress to refresh my wp_list_table after bulk_delete
- Passing search query and custom filter to wp_list_table grid
- Unwanted redirection to the article page using WP_LIST_TABLE in the woocommerce_product_data_panels filter
- Sort by last 7 days in post list
- WP_List_Table add custom bulk actions
- Display data in using WP_List_Table
- Sorting columns with aliases
- WP_list_table prepare_items()
- Process bulk actions with POST method – WP_List_Table
- How to use rowspan in WP List Table?
- Custom List Table – Bulk Action – How to remove the _GET parameters
- How are bulk actions handled in custom list table classes?
- wp_list_tables bulk actions
- add_action ‘manage_posts_custom_column’ in a class [closed]
- Sort custom post type list table by display name of a user id stored as post meta value
- Why does my custom taxonomy show a total count across all post types
- WP List Table custom quick edit box – post meta data missing and columns change on submit
- List table not rendering when $this->items is filled
- Add content in custom post type page after the title and before columns
- wp_list_table search box does not show
- Redirect after deleting post and keep track of pagination
- Create a clickable name in WP_List_Table for Plugin Admin
- WP_list_table bulk_action get edit and delete
- Replacing the List table of a Post Type
- How to stop _wpnonce and _wp_http_referer from appearing in URL
- How do I limit the status options for bulk/quick edit to only Published and Draft?
- URL Redirect and Bulk Actions in wp_list_table
- Row actions not showing? Why?
- Add search Value to wp_list_table pagination
- Redirection to taxonomy posts list after post submit.
- Problems with: manage_${post_type}_posts_columns
- Add acf field in title (admin table)
- Wp List Table – wpdb results are not displaying
- Default sort on admin columns with meta date hides draft posts with empty date value
- How to show filters on table when using WP_List_Table
- Wp_list_table search box not working for custom value from database
- Bulk actions redirects to “options.php” page when clicked (WP_List_Table)
- wp_create_nonce doesn’t verify when using WP_List_Table
- Modify WP_List_Table pagination “item(s)” text?
- Problems with WP_List_Table and hooks
- WP_Terms_List_Table Quick Edit not working
- WP List Table in custom post type
- Admin Posts List (edit.php) by post IDs
- How to sort posts in a custom post type by title in ascending order by default?
- Possible to add a statement to a core file?
- WP_List_table with form of method=GET redirects to wrong url after submit
- How to add query args to links to CPT admin submenu
- Didn’t get array of users like in delete action WPList table in users tab
- Add search bar to Custom Database Table in WordPress Dashboard
- Odd behaviour for the update button when displaying a WP_List_Table
- remove $_GET-parameter from WP_List_Table::tablenav
- Wp_List_Table not responsive
- WordPress admin Tables use to display own data – In admin WP
- How to add checkbox with multiple values in table?
- Admin Custom Plugin List Files in admin Table
- Wp_List_Table is showing as no class found named wp list table
- Issue removing columns from admin table
- Is it possible to change the default WP post table’s data source?
- Sorting in WP_List_Table class
- How do I add an admin table to my page?
- Different style for specific rows in custom list table using WP_List_Table
- Ajax Category add doesn’t update the list table custom column
- Is the ‘parse_query’ filter still valid to change filtered content on admin list view?
- How to handle my row actions on a custom list table in the admin section
- Custom redirection when managing users in admin
- WP_LIST_TABLE bulk action
- What is wrong with assigning values to a WP_List_Table class?
- Get the selected posts IDs to use in bulk edit AJAX call
- Show all post types in the same table of posts [duplicate]
- Uncaught Error: Cannot use object of type stdClass while showing the list using WP_List_Table