Skip Navigation

[Resolved] AJAX Results From View Filter Not displaying

This support ticket is created 4 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 – 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 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Tagged: 

This topic contains 8 replies, has 2 voices.

Last updated by nedG 4 years, 6 months ago.

Assisted by: Shane.

Author
Posts
#1676539

I created a View for a CPT called Beach Home Rentals.

I added a filter that is a mix of Taxonomy Filters and Custom Fields.

Whenever a Filter value is changed, I wanted the results to display dynamically using AJAX

It used to work fine, but it seems that it no longer is working. I have reviewed all of the filters and all of the code that comprises the view and I cannot seem to find any issues. It simply isn't displaying any results.

The URL is here... hidden link

#1677015

Shane
Supporter

Languages: English (English )

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

Hi Ned,

Thank you for getting in touch.

Would you mind allowing me to have admin access to the website so that I can have a look at this for you ?

The private fields will be enabled for your next response.

Thanks,
shane

#1678059

Shane
Supporter

Languages: English (English )

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

Hi Ned,

Thanks for the credentials, however they don't seem to be working.

Can you check them on your end to see if you are able to log in ?

Thanks,
Shane

#1678071

Oooops sorry,. the UN was spelled wrong. It should be support@toolset.com

The name of the View is.... Beach Home Rentals - ALL With Filter

#1678429

Shane
Supporter

Languages: English (English )

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

Hi Ned,

Thank you for the info. I checked the view and suspect the issue is coming from these fields.



<div class="beach-rental-filter-line clearfix">
  <div class="beach-rental-filter-label2">[wpml-string context="wpv-views"]Min Bedrooms:[/wpml-string]</div>
  <div class="beach-rental-filter-value2">  [wpv-control field="beach-home-rental-bedrooms" url_param="beach-home-rental-bedrooms" type="select" values="1,2,3,4,5,6,7,8,9,10" display_values="1+,2+,3+,4+,5+,6+,7+,8+,9+,10+"]</div>
</div>  

<div class="beach-rental-filter-line clearfix">
  <div class="beach-rental-filter-label2">[wpml-string context="wpv-views"]Min Bathrooms:[/wpml-string]</div>
  <div class="beach-rental-filter-value2">  [wpv-control field="beach-home-rental-bathrooms" url_param="beach-home-rental-bathrooms" type="select" values="1,2,3,4,5,6,7,8,9,10" display_values="1+,2+,3+,4+,5+,6+,7+,8+,9+,10+"]</div>
</div>  
 
<div class="beach-rental-filter-line clearfix">
  <div class="beach-rental-filter-label2">[wpml-string context="wpv-views"]Sleeps:[/wpml-string]</div>
  <div class="beach-rental-filter-value2">  [wpv-control field="beach-home-rental-sleeps" url_param="beach-home-rental-sleeps" type="select" values="5,10,15,20,25,30" display_values="5+,10+,15+,20+,25+,30+"]</div>
</div>  

These are the custom fields. I would suggest not using manual values and allow our Plugin to generate the values for this. I would suggest deleting these fields from the filter and then re-adding them.

Thanks,
Shane

#1680615

I did what you asked... (deleted the custom fields from the filter and re-added them) and it still isn't working.

This page used to work fine. Not sure what to do from here.

#1680619

My issue is resolved now. Thank you!

#1680621

I found the solution. I ended up changing the filter to use "number" variables instead of "string" variables for the custom fields and it seems to have solved the issue. Thanks!

#1680635

Thank you!