The Toolset Community Forum is closed, for technical support questions, please head on to our Toolset Professional Support (for paid clients), with any pre-sale or admin question please contact us here.
Views plugin provides an API, making it easy to display Views output using PHP.
When you ask for help or report issues, make sure to tell us all related information about your View and the data that you want to display using the Views API.
Viewing 15 topics - 436 through 450 (of 469 total)
Problem: I would like to trigger an AJAX update of my View using custom code that responds to a Map event.
Solution: First, set up the View to update with AJAX whenever an input changes. Then throw a generic 'change' event on any filter input with the class 'js-wpv-filter-trigger':
Problem: I would like to use Views to display information from an external, dynamic data source.
Solution: Views is not designed to use external data sources directly. If your data can be imported into WordPress as posts and custom fields, then Views can access the imported data directly in the database.
I crafted some Custom JS Code and added it to the Custom Filter JS Section.
It works fine, but as soon I either paginate or update my search results with AJAX, the Custom JS Code does not work anymore.
What can I do?
Solution
You can add your code at specific moments of the AJAX process.
When you open the JS Section of the Custom Filter Editor you will see a „Front-end Filter“ button.
When you click it you see several options, each representing a moment of the AJAX process.
Choose the moment you desire to re-fire your Custom JS Code, and insert.
After, insert your custom function to be called within the just added JS Filter.