Skip Navigation

[Resolved] Filtering stopped working

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

Problem:

The Views filters worked first but but suddenly stopped working

Solution:

The filter URL parameter name should be same as your shortcode attribute "url_param":
[wpv-control-post-taxonomy taxonomy="category" type="radio" url_param="wpv-category" output="legacy"]

See details here:
https://toolset.com/forums/topic/filtering-stopped-working/#post-948259

Relevant Documentation:

This support ticket is created 6 years, 6 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 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Hong_Kong (GMT+08:00)

This topic contains 8 replies, has 3 voices.

Last updated by Luo Yang 6 years, 6 months ago.

Assisted by: Luo Yang.

Author
Posts
#923391

I am trying to: create a basic category filtering with radio buttons

Link to a page where the issue can be seen: hidden link

The filters worked first but but suddenly stopped working. The url has this ending stuck:
.../?wpv_aux_current_post_id=756&wpv_view_count=817-TCPID756

What ever I click the url stays the same. I have tried disabling AJAX, no help.
Also I have uninstalled all the plugins and tried with default theme, no help there either.

The filtering view is done following:
- Query section has the custom post type selected, query options "don't include current page in..."
- query filter is: Select posts with taxonomy: Categories slug in one of those set by the URL parameter wpvcategory
eg. hidden link
- filter section: no pagination, AJAX results update when visitors change any filter values
and in "Search and Pagination":

[wpv-filter-start hide="false"]
[wpv-filter-controls]
<div class="form-group">
[wpv-control-post-taxonomy taxonomy="category" type="radio" url_param="wpv-category" output="legacy"]
[wpv-filter-reset reset_label="Näytä kaikki" output="bootstrap"]
</div>
[/wpv-filter-controls]
[wpv-filter-end]

What am I doing wrong here?

#923538

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

Well - with the information you shared regarding how the filter is setup, it looks like OK to me.

Is it possible for you to send me access details so I can check 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 and FTP) 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 would additionally need your permission to de- and re-activate Plugins and the Theme, and to change configurations on the site. This is also a reason the backup is really important. If you agree to this, please use the form fields I have enabled below to provide temporary access details (wp-admin and FTP).

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

#924313

Hi Minesh, any idea of this? I am a bit in a hurry since the site should be published soon and this appeared suddenly.

#924741

Minesh
Supporter

Languages: English (English )

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

First of all - After checking debug information you shared with us, I found that you are using outdated Toolset plugins. We always recommend to run your site with latest stable release plugin version.

*** Please make a FULL BACKUP of your database and website.***
Could you please update ALL Toolset plugins to it's latest official released version. You can download latest plugin release from your accounts page:
=> https://toolset.com/account/downloads/

Regarding the issue now - I checked on my local test install with minimum setup (only Toolset plugins + default theme) and I do not able to see this issue.

What I've done:
-> assigned default taxonomy category to XYZ post type
-> created a new view and set this view to display XYZ post type filter by category (displayed as radio button) and set view to filter as AJAX
-> I click on radio button and it filters the posts correctly.

Am I missing anything here? If no:

In order to minimize the cause of the issue:
Could you please try to resolve your issue by deactivating all third-party plugins as well as the default theme to check for any possible conflicts with any of the plugins or themes?

#924802

Ok, I hadn't got any notification of plugin updates. Now they are updated, but no help there.

And these steps you mentioned:

"What I've done:
-> assigned default taxonomy category to XYZ post type
-> created a new view and set this view to display XYZ post type filter by category (displayed as radio button) and set view to filter as AJAX
-> I click on radio button and it filters the posts correctly."

Sure, IMHO that's toolset basic functioning 🙂 and that's how it worked in my site too in the beginning. I just don't understand what happened and why it stopped working.

And as I said, I already changed to default template and deactivated all the other than toolset plugins. It didn't help, I did it now again, same thing.

I think there is something now oddly corrupted perhaps, but I don't know how to correct and where to search the solution.

#924814
Screen Shot 2018-07-13 at 19.17.23.png

Here is part of the source code generated. Do you see any hints of the mal function reason there?

#948259

Hello,

Minesh isn't available, I will take care this thread.

I have checked it in your website, and have done below modification:
Edit the view "reseptit-filttereillä", in section "Query Filter", change the filter URL parameter name from:
wpvcategory

To:
wpv-category

It should be same as your shortcode attribute "url_param":
[wpv-control-post-taxonomy taxonomy="category" type="radio" url_param="wpv-category" output="legacy"]

Please test again, check if it is fixed or not, thanks

#948295

Thank you Luo Yang, you made my day!

#948904

You are welcome