Skip Navigation

[Resolved] Sorting CF numeric

This support ticket is created 5 years, 3 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
- - 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00
- - - - - - -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Tagged: 

This topic contains 7 replies, has 2 voices.

Last updated by Beda 5 years, 3 months ago.

Assisted by: Beda.

Author
Posts
#1321123
loop.PNG
view - order.PNG
number.PNG

i have a custom field i call it "Number" its a field-type "number" as well.
I also have a custom field i call it "Start Time"
As i have found out in this forum, there is no field for just time, only date and time.
So i created a "order-by" field (Number above)

Then i use a view to show all results and order it by Field - number
i have given the post the numbers 10,20, 30...etc but when i get to 100 its order it like this, like a mess.

10
70
80
90
95
100
110
120
20
30
40
50
60

what do i do wrong here ?

I did also try the "Start time" that is a Single line filed, ans tried to sort the string 10:00, 10:30 etc but that did not work ether. I tried, as a string, as a number, as native...

Please help

#1321155

Numeric ordering of a numeric field works fine locally in my test views.

Can you let me see the install from the backend, so I can try to replicate the issue locally?

I also suggest testing without any other plugin or code but Toolset itself to confirm it as a bug in Toolset or a compatibility issue with another software, if you have the change to test this after a back up or on a testing site.

#1321161

You are totally right!! I found the issue. it was a plugin named " Post types order "
i inactivaded it , and now it works.
Thanks for the reminder! 🙂

#1321165

My issue is resolved now. Thank you!

#1321175

I'd suggest reporting this issue to the plugin, it seems it overwrites the query not only on the backend, but also frontend.

However note, I wasn't able to replicate any issues using such view and hidden link

If you need that plugin, please let me know, maybe we can replicate and fix or inform the other author about.

#1321185

I did try activate that plugin again, but is messes up toolset sorting.
So i will not use that plugin at the moment.

But you should inform the author, i think.

#1321555

Hello again
i still need to use that plugin "post type order"
And i have found out that is messes up more sortings i use 🙂
can you make this private so i can send you login so you maybe can fix it.

#1321813

The strange is, I cannot replicate an issue similar to what you report using the plugin and Toolset.

That might depend on settings or other things, maybe you could send me a duplicate of your site, so I can narrow it down and then we can prepare a proper report?

If you can provide me the data, please use the next private reply to submit it.
Here's a DOC that explains how to create a site's duplicate:
https://toolset.com/faq/provide-supporters-copy-site/

Thank you!