Skip Navigation

[Resolved] Make a table sortable with a sub-view of [wpv-items-count]

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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

This topic contains 2 replies, has 2 voices.

Last updated by amandaD 1 year, 7 months ago.

Assisted by: Minesh.

Author
Posts
#2604037

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)

#2604237

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

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.

#2604317

My issue is resolved now. Thank you!