Skip Navigation

[Resolved] Change order of post relationship items

This support ticket is created 4 years, 2 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
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Tagged: 

This topic contains 5 replies, has 2 voices.

Last updated by Shane 4 years, 2 months ago.

Assisted by: Shane.

Author
Posts
#1827797

I found this and it looks like it's from a couple years ago and that the feature was in beta at the time.

Has it been released yet? I don't see how I would re-order in my current (latest) version.
https://toolset.com/forums/topic/change-order-in-the-backend-of-post-relationship-items/

#1827927

OH and to clarify, I'm looking to order on the front end output. I added a custom field (order by #) for the relationship, but it doesn't work...

#1828667

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Stacey,

Thank you for getting in touch. Unfortunately you are not able to sort your Post relationships on the backend as a permanent sorting option.

You can temporarily sort the items by the columns on the backend but for the frontend you will need to add an ordering option to your view.

Currently it should be defaulting to the Post Date.

Thanks,
Shane

#1828701
Screen Shot 2020-10-29 at 10.21.36 AM.png
Screen Shot 2020-10-29 at 10.18.49 AM.png

Thanks. I did see how to sort the columns in the backend temporality and that is fine. My "bigger" question is how do I sort on the front end.

I've come up with this idea, but no luck working so far. I added a custom field to the "relationship" called "order".
Then on the view I tried sorting by that custom field, but since it's not related to the "movement" type itself, it doesn't register.

#1828855

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Stacey,

If the customer field Order is on the Movements post type that your view is displaying then it should sort fine.

The sortable field must be on the post type that you are displaying. I'm assuming that this is not what is happening for you.

If possible would you mind allowing me to have admin access to the site to check on this for you to see how things were setup ?

I will need a link to the page where I can see the issue.

Thanks,
Shane

#1832029

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Stacey,

Thank you for the patience, this should now be working. The problem was the ordering was on the intermediary post type so I needed to set the view to display the intermediary post type and then retrieve the values from there.

Please let me know if everything is ok now.

Thanks,
Shane