I have a View with a sortable table of my CPT "Programmes". In the table, I have a column in the table which shows the count of child posts linked to the CPT (using another view with the [wpv-items-count] shortcode).
Is there any way I can make the child-count column sortable?
What is the link to your site? hidden link (password protected)
Hello. Thank you for contacting the Toolset support.
No - its not possible to sort the parent posts with child post count having child post count is displayed using the child/nested view.
The workaround would be, you will have to create a custom field "child-post-count" and add this field to your parent post and make sure that when you add/update the parent post the related child post count value should be saved to the custom field "child-post-count" and then you should use this custom field to display the child post count instead of child/nested view.
If you agree, please let me know if you require further help with that. You should create a custom field that should hold the child post count value. Also, let me know if you are using any Toolset form to create child posts from frontend.