Skip Navigation

[Resolved] Filter is not working properly. you need to click 3 times

This thread is resolved. Here is a description of the problem and solution.

Problem:

The customer reported an issue where a filter they created worked fine, but the sorting by "vintage" on the results page was not functioning properly. The issue was observed after clicking on the sorting option by "vintage."

Solution:

We identified that the issue was related to the "vintage_post" field, which was created and managed by ACF (Advanced Custom Fields). The sorting issue did not occur when using a Toolset custom field. As a workaround, we advised the customer to manage the "vintage_post" field with Toolset by following these steps:

- Go to Toolset > Custom Fields and click on the "Post Field Control" button.
- Search for the "vintage_post" field and click on "Manage with Types."
- Edit the Toolset View "ADVANCE FILTER" and change the column field from

<th>[wpv-heading name="post-field"]Vintage[/wpv-heading]</th> 

to

<th>[wpv-heading name="types-field-vintage_post"]Vintage[/wpv-heading]</th>

This workaround allowed the sorting to function correctly using the ACF field within the Toolset View. The customer confirmed that the solution worked perfectly on the staging site.

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 13:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Sao_Paulo (GMT-03:00)

This topic contains 4 replies, has 2 voices.

Last updated by sandyS 3 months ago.

Assisted by: Mateus Getulio.

Author
Posts
#2717776

I made a filter and it is working fine but after the results, if you click on shorting by vintage it is not shorting properly. Here is video I have recorded

This is the link hidden link

hidden link

#2718749

Mateus Getulio
Supporter

Languages: English (English )

Timezone: America/Sao_Paulo (GMT-03:00)

Hi,

Thank you for contacting us and I'd be happy to assist.

To suggest the best way to achieve this, I'll need to see how this view is set up in the admin area.

Can you please share temporary admin login details along with a link to a page where this view can be seen?

Note: Your next reply will be private and please make a complete backup copy, before sharing the access details.

regards,
Mateus

#2719713

Mateus Getulio
Supporter

Languages: English (English )

Timezone: America/Sao_Paulo (GMT-03:00)

Hi,

I have escalated this ticket to our 2nd tier of support where our 2nd tier specialists will take a deeper look at this issue and will try to find a solution.

I will get back to you as soon as I get an answer from them.

Best regards,
Mateus

#2724568

Mateus Getulio
Supporter

Languages: English (English )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello there,

Thank you for your patience while we investigated it.

Upon further review, our team identified that the issue was happening due to the field vintage_post be a field created and managed by ACF. If we used a Toolset custom field for the sort, there was no issue that we could experience.

We were able to find a workaround for you to be able to properly sort it within a view using the ACF field. We were able to fix it in the staging site following the steps:

- Go to Toolset > Custom Fields and click on the Post Field Control button
- Search for the 'vintage_post' field and click on 'Manage with Types'
- Edit your Toolset View 'ADVANCE FILTER' and change the column field from:

<th>[wpv-heading name="post-field"]Vintage[/wpv-heading]</th>

to:

<th>[wpv-heading name="types-field-vintage_post"]Vintage[/wpv-heading]</th>              

This will cause the ordering to work with the new managed-by-types field rather than the ACF field itself without causing other changes to the ACF field.

Can you please confirm it is fixed on the staging site and then reproduce the steps in the live as well?

Thank you,
Mateus

#2724597

Working perfectly fine.