Skip Navigation

[Resolved] order item relations

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.

Tagged: 

This topic contains 8 replies, has 2 voices.

Last updated by federicoA 1 year, 7 months ago.

Assigned support staff: Shane.

Author
Posts
#1657201

hi,
I created a relationship one to many collections-products.
I would like to know if it is possible to reorder the products in the relation.

thanks
federico

#1657391

Shane
Supporter

Languages: English (English )

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

Hi Federico,

Thank you for getting in touch.

Are you referring to the backend table that is generated when you create the relationship ? If so then you can't reorder it permanently but if you click the columns you can order the table by that column.

Please let me know if this helps.
Thanks,
Shane

#1662435

yes I would like to change the order of the products in the report. Can I use the same order in the custom post list?

#1663627

Shane
Supporter

Languages: English (English )

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

Hi Federico,

I'm a little unsure of the entire scope. However on the backend table on your product you can reorder the items temporarily.

However i'm not sure what you mean by "products in the report". What is generating this report ?

I need a little more information in order to ensure that i'm providing the correct information.

Thanks,
Shane

#1664971

Hi,
sorry I wrote wrong.
I meant the products in the relationship: products-> collection.
From the relations I can't order them. correct? can I use the (general) order of the custom post products?
thanks

#1665757

Shane
Supporter

Languages: English (English )

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

Screenshot 2020-06-16 at 3.22.41 PM.png

Hi Federico,

Sill not 100% sure of the context that you are referring. However the only place you can re-order the products are :

1. On the backend template with the relationship table. See Screenshot. It should be noted that this is temporary and only affects the backend. See Screenshot

Clicking any of the column names like my example will sort the Posts.

2. On the frontend if you are using a view to display the related posts. Otherwise from these two locations i'm not aware of anywhere else where they can be sorted.

Thanks,
Shane

#1667213
Schermata 2020-06-17 alle 18.08.18.png

hi, shane,
this is my context to which I refer (screenshot). Custom Post "Collections" with related "products".
For example I would like "Gotham SL" to appear first in related products.

#1667383

Shane
Supporter

Languages: English (English )

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

Hi Federico,

Thank you for the clarity.

Apart from the column sorting that is available, there isn't another way to sort this.

The column is sorted alphabetically so its not going to be possible for the "Gotham SL" to appear first.

Thanks,
Shane

#1667573

in my opinion it is a function to add.