You could edit the columns for your CPT like so:
function edit_cpt_columns($columns){
$columns = array(
'cb' => '<input type="checkbox" />',
'title' => __('Post')
);
return $columns;
}
add_filter('manage_edit-CPT_columns', 'edit_cpt_columns');
function manage_cpt_columns( $column, $post_id ) {
global $post;
switch( $column ) {
case 'title' :
$link = get_permalink($post->ID);
echo '<a href="'.$link'">'.$post->post_excerpt.'</a>';
break;
default :
break;
}
}
add_action( 'manage_CPT_posts_custom_column', 'manage_cpt_columns', 10, 2);
You would need to replace CPT
with the name of your custom post type.
The first function declares you columns while the 2nd function fills the columns with data.
Related Posts:
- Possible to hide Custom Post Type UI/Menu from specific User Roles?
- WordPress dashboard, viewing CPT results in 504
- Displaying Custom Post Types In “At A Glance” Meta Box
- Show Custom Taxonomy Inside Custom Menu
- Adding Custom Post Type Counts to the Dashboard
- How to Make an admin_notices Message That Disappears Once the User Leaves That Particular Page?
- How to Change the Title of a Meta Box on a Specified Custom Post Type? [duplicate]
- Adding help information to custom post edit page
- Display only custom post type count for current author on the “At a Glance” dashboard widget
- How can I show some description in the “All Posts” view of a custom post type in Dashboard?
- Add custom post types stats to a custom dashboard widget
- Sending an email when a CPT is saved/updated (NOT when it’s created)
- How to redirect wp-admin/index.php to a custom post type?
- Separate comment section for post type in dashboard
- right_now_content_table_end function not working?
- Customize the Dashboard Menu Editor
- filter custom post type by meta key in dashboard
- Team club with CPTs and user registration + user dashboard
- Cluster CPT posts to users based on ACF value from their profile on dashboard
- List Custom Post Types in Admin Dashboard
- Add data to post edit page, when post is published
- Adding link to dashboard sidebar, nested under custom post type
- allowing custom user role to access custom post type in wordpress admin
- Slow CPT in backend
- How can i redirect click to new admin page not to edit screen in post table
- Metabox collapsed by default
- Custom page for creating/editing custom post type
- Help Adding filter to Add Media button for custom post type
- Custom user roles
- Add role privileges of the custom post type
- creating different edit screens for different roles
- Change column of row action (Quick Edit) links in WP_List_Table
- Allow certain part of a page to be easily updated for client?
- How can I make a custom post type that loops pages in a new dashboard page, each single page is a new dashboard page (all within the back-end)?
- empty dashboard for custom role
- How to exclude a certain CPT from a snippet for Dashboard box?
- Combining queries with different arguments per post type
- register_post_type & ‘register_meta_box_cb’ argument
- 404 on child page when parent page slug is identical to custom post type
- Custom Post Type Archives with 0 Posts Redirects as 404
- How to replicate some of Drupal Views functionality in WordPress?
- Archive page with multiple taxonomies rewrite
- Date archives for custom post type
- WP Rest API Querying Custom Posts by ACF fields
- display multiple term post from taxonomy in a single page
- Dynamic variable for custom taxonomy in loop?
- Allow Author role to publish one post type and not another
- custom taxonomy – Template not working
- What hook should be used to programmatically create a post only when master post is updated?
- How to show post title outside of loop? [closed]
- Query current and future events, ordered by begin date
- Using WPAlchemy metabox values in another metabox
- adding .current* tags to custom post types and taxonomies
- How to get custom post type menu_name?
- Saving repeated option values in a custom query
- Remove custom post type slug not working for child pages
- I am facing problem in my archive page , it is partially working
- Rewrite rules for custom post type slug
- Check if admin is editing page or custom post type
- Admin notice not displaying
- Custom Image Thumbnails of Different Sizes
- wp_set_object_terms() not adding new term to custom post and custom taxonomy
- Changing number of posts per page on CPT-archive.php, have tried 20-30 code chunks so far
- Prevent stripping MathML tags on post save
- How to set order for a custom post type
- Display users uploaded files as posts
- Custom admin post.php page
- Displaying CPT and custom taxonomy side by side in Bootstrap 4 component
- Use Custom Post Type archive page for the taxonomies term archive page
- Nested Custom Post Type or Custom Post Type Parents?
- How to use TinyMCE Editor for one of my custom post meta field?
- Display related custom taxonomy posts in sidebar
- filter search custom field query
- Using wp_query to modify the loop in index.php for a CPT
- Different slug taxonomy for two different CPT
- Getting WordPress Flexslider Item Number
- Postname on unique permalink structure appends “-2” for a custom post type. How can I get this to stop happening?
- WordPress Custom Post Type and Shortcode for Portfolio Items
- Post ordering not working with custom field
- Looping through custom taxonomy and display custom post types (Custom Post Type UI)
- Function to add custom HTML into head in custom post-type list page
- Invalid file type when using wp_upload_bits to upload PDF to a custom post type
- What is the parameter : ‘Customs-fields’
- set post_type based on custom taxonomy permalink
- Get previous and next custom post by custom field
- Show only Current category and sub category of custom post wordpress
- Order posts by taxonomy terms
- Creating post template for a Custom Post Type
- WP Admin Dropdown List Filter for custom (ACF) field on custom post type(s)
- Why are custom taxonomies only appearing on the edit page of one of these types, but not the other?
- Add Custom Field in Product in WP Admin and send to Order Webhook
- get_the_terms child terms for current post/custom post only
- Custom Post Type Query by user id
- select custom post type on regular post
- woocommerce post_type conflict with existing post type
- Get month and day from a Date Picker custom field
- How to change post status link order(priority) on cpt listing page
- How to loop custom post type posts by author?
- Linking from a list of custom post type items to a single – get_post_permalink not working correctly
- After wp_insert_post() custom post type does not show in the admin