Views plugin lets you build your own custom search for any content type. These searches can be based on post content, taxonomies and custom fields.
When you ask for help or report issues, make sure to tell us settings for your custom search.
Viewing 15 topics - 2,566 through 2,580 (of 2,601 total)
The issue here is that the user is saying the js_event_wpv_parametric_search_results_updated callback function is not working
Solution:
In this user's case they didn't correctly formatted their code inside the function.
The code needs to be inside the callback like this.
jQuery( document ).on( 'js_event_wpv_parametric_search_form_updated', function( event, data ) {
/**
* data.view_unique_id (string) The View unique ID hash
* data.view_changed_form (object) The jQuery object for the View form after being updated
* data.view_changed_form_additional_forms_only (object) The jQuery object containing additional forms from other instances of the same View inserted using the [wpv-form-view] shortcode
* data.view_changed_form_additional_forms_full (object) The jQuery object containing additional forms from other instances of the same View inserted using the [wpv-view] shortcode
*/
function initSlider() {
console.log($('#wpv_control_textfield_min-price').val());
}
});
Problem:
The question in this thread is that the user wanted to know if it was possible to create a preview image of a PDF file that was uploaded automatically.
Solution:
The best advice here is to allow the user to upload a preview image of the file as a required field because some custom code will be required to create the preview images from the pdf files and custom coding is out of the scope of our support forum.
Problem: I have a "select" custom field configured on my posts, and a View of these posts filtered by the custom field. The filter does not seem to be working as expected.
Solution: In general you should compare the custom field content instead of display text in your Query Filter. For example, on the trustees page you should test to see if the value is "1", not "trustees".
Pro tip: use a shortcode attribute to define the value you want to test in your Query Filter. Choose "Board is a string equal to a shortcode attribute 'board'". See the attached screenshot for an example. This way, you can place the same View on each page without needing 3 different Views: