Problem:
Want to record number of child posts in a post custom field.
Solution:
We have a solution for the exact same case here:
https://toolset.com/forums/topic/how-to-order-parent-posts-according-to-their-child-post-count/#post-577316
==> In the code given above, please make sure to replace 'child-post-type-slug' with your original child post type slug.
==> Replace 'parent-post-type-slug' with your original parent post type slug.
==> Replace 'custom-field-slug' with your field slug.
And then in the View >> you will set Ordering >> by your Custom field.
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.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | 12:00 – 17:00 | 12:00 – 17:00 | 12:00 – 17:00 | 12:00 – 17:00 | 12:00 – 17:00 | - |
- | 18:00 – 21:00 | 18:00 – 21:00 | 18:00 – 21:00 | 18:00 – 21:00 | 18:00 – 21:00 | - |
Supporter timezone: Asia/Karachi (GMT+05:00)
This topic contains 4 Antworten, has 2 Stimmen.
Last updated by julienL-5 vor 6 Jahre, 5 Monate.
Assisted by: Noman.