[Résolu] I want to add 2 sortable column in custom post type overview
This support ticket is created Il y a 1 an et 6 mois. There's a good chance that you are reading advice that it now obsolete.
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.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
I have one custom post type Jobs in that i have 2 post reference field "Related Location" and "Related Contact person" Field and i want to add both field value in post overview with column sortable.
I understand you're referring to adding sortable columns in the post-management screen in the admin area and not the front end.
Toolset plugins don't include any built-in feature for this customization, so this will require either some third-party admin screen management plugin.
Note: Since post reference fields store the related post in the structure of post-relationship and not as custom fields, you may have to replace those post reference fields, with the regular select type fields, and then use the "wpt_field_options" filter, to programmatically generate those field options from the relevant post types: https://toolset.com/documentation/programmer-reference/types-api-filters/#wpt_field_options