Skip Navigation

[Closed] Add columns to custom post type list

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 3 replies, has 2 voices.

Last updated by Luo Yang 1 year, 2 months ago.

Assisted by: Luo Yang.

Author
Posts
#2544443
Screenshot 2023-01-30 at 2.28.57 PM.png

How do I add additional columns to the list view for a custom post type, I've attached a screen shot.

#2544755

Hello,

What kind of column do you want to add?
If it is custom fields created with Toolset Types plugin, you can try these:
Dashboard-> Toolset-> Post Types, find and edit your custom post type, in section "Post Fields to be shown as columns in Post Type listing in WordPress Admin", here you can choose specific fields to display in the post listing in WordPress Admin.

If you need other custom columns, you will consider custom codes, for example WordPress built-in filter hook: manage_{$post_type}_posts_columns
https://developer.wordpress.org/reference/hooks/manage_post_type_posts_columns/

#2547785
custom-post-type-screen.jpg

Thank you for the suggestion. However, I don't see a section called "Post Fields to be shown as columns" when I go to edit my post type. I have version 3.4.17 installed currently.

I've attached an image of what I see.

#2548475

How do you setup the custom fields?

That option only available for custom fields created with Toolset Types plugin, see below test site:
Login URL:
hidden link

1) Create a post field group with a single line field in post type "Sales Reps":
hidden link

2) Edit the post type "Sales Reps"
hidden link
You will see the section "Post Fields to be shown as columns in Post Type listing in WordPress Admin"

The topic ‘[Closed] Add columns to custom post type list’ is closed to new replies.