We are going to provide a step-by-step guide on how to show the date of a custom post in an admin column in the WP Dashboard in a well-organized way with the JetEngine plugin based on the example of the Team custom post type. You can create an additional admin column with the data from the meta field for any custom post type created with JetEngine.
1 Step — Add Date meta field
In the WP Dashboard go to the JetEngine > Post Types section and open the custom post type you want to work with. In the Meta Field section add a Date meta field.
2 Step — Add the admin column
Scroll the page down to the Admin Columns block. Click the “Add New” button and fill the fields with appropriate data:
- In the Type field, choose the Custom Callback option from the drop-down list;
- In the Callback field click the “Select from existing callbacks” line. In the appeared window you need to choose the first callback, jet_engine_custom_cb_date.
- Then, in the Set field text area, you should type in the name of the meta field, which to get the date from. After that set the Format.
- Also, if you want to make the admin column sortable, move the toggle next to the Is Sortable field.
3 Step — Add a post
Nowt, in the chosen custom post type in the WP Dashboard edit a certain event and specify the date, from which he or she started to work in the company, right here.
Now you can see the date in an admin column.
Now you know how to display a date in the admin column for the custom post type using JetEngine functionality.