Skip Navigation

[Resolved] Relationship posts sorting

This support ticket is created 4 years, 6 months ago. 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.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+01:00)

This topic contains 1 reply, has 2 voices.

Last updated by Nigel 4 years, 6 months ago.

Assisted by: Nigel.

Author
Posts
#1352225

I have two custom post types - events and items. Items are songs/aria/opera and other musical pieces (please excuse me if I'm wrong with the terminology in English). I created a relationship between events and items and it works great, but since there is a demand to sort items, included in an event, how can I set the order of the items in the event? You will agree that the intro item should be first, no matter what is its post date 🙂 So is it possible to set the order of the related posts in the admin panel when creating an event?

Thank you in advance!

#1352389

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+01:00)

Screenshot 2019-10-01 at 09.59.55.png

Hi Nelly

You are referring to the edit screen of the parent post type where you add/connect child posts? Like in my screenshot?

You can change the sort order for that section according to the child post title, or custom fields belonging to the child post, which are set to display as columns.

So in my screenshot, my task posts which are children of projects have a priority field. So I can order that section by the titles of the tasks (ASC or DESC) or by the task priority (ASC or DESC).

So you could add a custom field to your child posts to use for ordering.

But when you change from the default (the title) it only affects the current post being edited, it doesn't persist across to other parent posts when you edit those.

So, I don't really have a solution, I'm afraid.

I suggest you submit a feature request, which will go to our product manager who can evaluate the request and consider it when prioritising development work: https://toolset.com/home/contact-us/suggest-a-new-feature-for-toolset/

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.