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 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,491 through 2,505 (of 2,520 total)
I have a search form that has multiple selects, submit button and reset button, since I am customising which dropdown is shown based on other one is selected, when a reset button is clicked is not working as expected.
I need to trigger when the reset button is clicked and results are "updated", so I can run a custom JS.
Problem: I would like to include a list of text links that behave like filters in my custom search View.
Solution: Text links are not one of the options provided for our filter controls, but you could use custom CSS to style a radio input filter. Remove the button elements and style the labels to look like a list of links.
Problem:
How to order View results by post stickiness.
Solution:
Because of the way WordPress identifies sticky posts, it is not possible include the stickiness of posts in the ordering options.
Sticky posts are stored in an array in wp_options, so you would need to run your query independent of their stickiness, then use the wpv_filter_query_post_process hook (https://toolset.com/documentation/programmer-reference/views-filters/#wpv_filter_query_post_process) to manually re-order the results by first extracting those that are found in the array of sticky posts and then appending the remaining posts which are not.
I have a layout with a view showing a listing of houses (this for a real state site) for a CPT archive.
I have several entries for the CPT representing a house for sell.
Everything works well (houses are listed beautifully in the view) but 2 of the filters I've set are not working. These are 2 numeric fields representing the number of bedrooms and the number of bathrooms. There are "select" filters. When I click on them they don't show any value (although there are CPT entries having those fields populated). In fact these 2 filters work perfectly well in another layout-view.
Solution:
please try this:
1) Create a WordPress Archive for "Propiedades en Venta" post type archive
Dashboard-> Toolset-> WordPress Archive,
create a new "WordPress Archive", in section "Loops Selection" choose option "Custom Post Archives"-> Propiedades en Venta
customize the wordpress archive as what you want, setup the custom field filters
2) Edit the archive layout, display above WordPress Archive:
Edit the layout "Plantilla para el listado de propiedades en venta", remove the existed "Wordpress Archive" cell, add a new "Wordpress Archive" cell, enable option "Use an existing WordPress Archive", and choose above WordPress Archive of step 1, and test again
Problem:
How to allow comma to view's number field filter
Solution:
You can use view's filter hook wpv_filter_query to modify the view's query on fly and adjust it as per your requirement by hooking custom query filters to it.
The issue here was that the customer was using the views conditional shortcode on his custom woocommerce shop page, however the page was returning blank.
Solution:
The issue was not a specific conclusion to what this issue was as the client was building on a test server and when moved to live the issue was not there. I would suspect that some server configuration was the cause of this . I would suggest checking the php logs for the server.