Skip Navigation

[Resolved] Toolset does not sort results by custom field of type number or simple text.

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 5 replies, has 2 voices.

Last updated by hispavista-s.l.E 1 year, 10 months ago.

Assisted by: Minesh.

Author
Posts
#2562145
order by custom field number.png
custom number field.png
view in front-end.png

Hello,

I am trying to sort some results of a view ordered by a field of type number or text adding a 1 for the ones I want to appear first and a default 0 for the others.

I have saved all the posts and in the list of fields I get 0 or 1, depending on what I have indicated in the field. What happens is that when I indicate that it is ordered by this customized field, it does nothing.

What is happening, why is it not working?

I am waiting for your answer.

Greetings and good day

#2562747

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

Can you please share problem URL and admin access details and let me see whats going wrong with your setup.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#2563731

Minesh
Supporter

Languages: English (English )

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

Can you please check now: hidden link

The issue was that you added the view using the view's widget to your Elementor template:
-hidden link

There you added another sorting field that was causing the issue under the view widget section "Reemplazar la configuración básica de la view" I have removed that field and I can see now its working as expected.

Can you please confirm it works at your end as well.

#2564519

Hello Minesh, gracias por tu respuesta.

I will replicate your step by step on the original website to fix the problem.

Also I am running into a similar problem that has no order marked from widget, only from Toolset.

Within each study there is a table that is created with Toolset. The table is also not displayed sorted by the parameters indicated in the secondary order which would be menu order.

How can I show it with the order that is indicated in the repeatable fields to create the table?

Best regards and thanks

#2564565

Minesh
Supporter

Languages: English (English )

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

To order the repeating field group you will have to use the field "Field – toolset-post-sortorder" option from your order drop-down.

More info:
- https://toolset.com/course-lesson/creating-and-displaying-repeatable-field-groups/#displaying-repeatable-field-groups-in-custom-order

#2564595

My issue is resolved now. Thank you!