Okay, I found an answer myself. To help people who will read this in future, this is what I did:
1) This explains how to add a column: http://www.deluxeblogtips.com/add-custom-column/
2) This explains how to add a sortable column: https://wordpress.org/support/topic/admin-column-sorting/
Related Posts:
- How do I set the default admin sort order for a custom post type to a custom column?
- How can I change the admin search posts fields?
- Admin Area Custom Type Search By Meta Fields Without Title & Content
- Add “Last Edited by” column to custom post type list table
- How to add custom columns to Custom Post Type admin screen
- manage posts custom column is not populating data from meta boxes
- Prevent reload confirmation after AJAX save
- Custom admin columns for ALL custom post types
- How to show custom (checkbox) field value in admin post list?
- Custom post admin filtering by post meta (the date)
- Admin Column Text Positioning
- Adding HTML tags or css classes to admin columns
- CPT Columns doesn’t show categories
- Make a custom column sortable by a value from a different custom post type
- Default custom column to off
- Change column of row action (Quick Edit) links in WP_List_Table
- Style custom columns in admin panels (especially to adjust column cell widths)
- Custom Post Type Data in Sidebar widgets?
- Custom sortable columns ordered by meta-value?
- Many to Many Relationship between Two Custom Post Types
- How to Make an admin_notices Message That Disappears Once the User Leaves That Particular Page?
- Sorting a query by custom field date
- echo value from ‘select’ field type into page template using cmb2?
- Exclude add_filter from the admin
- Set post title from two meta fields
- How to sort CPT by custom meta value (date), and return posts month by month
- Not sure why my custom post meta field isn’t saving
- Stopping WordPress from Auto Generating Image Files for Sizes
- How loop through posts based on custom fields
- How to search CPT’s by meta query from the admin dashboard?
- Add theme options to custom post type admin pages [closed]
- Conditional to modify query results
- Sort admin area by custom Event Date field
- Get all Posts If has same custom field values in Posts
- Keep display metadata value on backend – Custom Metabox
- Two near-identical custom field types – one works, the other doesn’t . What can cause this?
- Retrieve value of a category’s custom field
- Rewrite and custom post type: order by custom field not working
- wp_query check if integer exists in custom field’s array
- Why is my select meta data not saving?
- Customize my custom taxonomy table in Admin panel
- Notify admin on new submit
- How can I use get_post_meta with add_rewrite_rule to build custom permalinks?
- Visual editor issue by having multiple tiny mce editors in a CPT
- Custom setting to show or hide field
- Meta Query Filtering not working on Custom Meta Box using Radio Buttons
- Grouping metadatas into one
- Include related custom fields from one post type in another post type’s JSON feed
- How to Output which matched meta_keys were found from custom_type_posts?
- Integrate Custom Post Type Events into Calendar
- How to get a custom field value of a custom post?
- Displaying and searching Custom Posts
- Importing Data from a Non-WordPress database, into WP
- Query based on custom fields start and end date
- It’s possible to hide body copy box for a custom post type?
- DIsplaying URL of custom field in last post of certain taxonomy && post type
- Multiple single templates?
- How can I add a custom field to an existing custom post type?
- How to get a custom type post data when it has a connection with another custom type post?
- Display Repeatable Meta Box Content
- Custom Field not saving in WordPress
- How do I replace the post title with a custom field?
- Add ‘page template’ column to dashboard for CPTs
- Custom Post type loop with ACF not displaying properly
- How can I output WPAlchemy repeating fields meta values in my page template?
- How can I modify a custom post type and custom page template for a child theme if all content seams to be handled by theme’s ‘native’ plugin?
- Custom post types category
- “Custom Field” to Excerpt field” for pages? [closed]
- Let users upload image(s) to the post from front end
- Update custom field value
- custom field in admin columns
- Insert custom fields to a custom post type
- How to display posttypes and taxonomy in standard posts, not in a separate label?
- A sports wordpress website
- How do I ensure that post_type and Taxonomy use the same slug?
- How to make an API call to a custom post type but filtering by meta value?
- Migrate Custom Post Type with Custom Fields data and parent child order
- Custom taxonomy terms as children of multiple custom post types
- Custom Post Type meta data getting deleted on bulk editing taxonomies
- Custom Form / Search with Custom Post Type Data
- Custom Column in CPT admin table not updated after Quick Edit save
- Display Custom Field or Custom Taxonomy in front page /post/product
- How to access repeater field of a custom field?
- Custom post type that lets users create a set of posts?
- Delete custom post type metadata without deleting the post in admin area
- How to delete comma from the end of results? [closed]
- Publish post and create additional posts with same content
- Converting a checkbox filter for custom fields to a dropdown
- Order Custom Posts by Several Fields
- Custom Post Type Causing Admin Sidebar UI Issue
- How to change the default orderby from “Date” to e.g. “Title” or my custom column in content type records list in admin?
- If i have custom post type with 5 custom fields do i have to create a new loop to reference each one?
- Repeatable custom meta select boxes
- 404 on Pages for Custom Post Type & Query_Posts
- How to show animal lineage/pedigree in WordPress?
- WP_Query arguments: Loop through custom post type – get all entries except excluded meta_key?
- Custom Post type as Taxonomy
- Display div based on Group metabox selection [closed]
- WP Query + custom fields: How to query event posts from the current date backwards 6 months and organize it month by month?
- Update Custom Field daily within 7days