nicholasM
Admite hilos creados en los últimos 30 días: 0
Debates favoritos del foro
Este usuario no tiene debates favoritos.
Temas del foro creados
Status | Debate | Supporter | Voces | Mensajes | Caducidad |
---|---|---|---|---|---|
displays terms in wpv-items-found
Iniciado por: nicholasM
en: Toolset Professional Support
Problem: Solution: function get_selected_filter_fun( $atts ) { // Attributes extract(shortcode_atts( array( 'taxonomy' => '', ), $atts )); if(isset($taxonomy)) { $term_value = 'wpv-'.$taxonomy; if( isset($_GET[$term_value]) && $_GET[$term_value] != ''){ $term_details = get_term_by( 'slug', $_GET[$term_value] , $taxonomy); return $term_details->name; } } else return 'Not selected'; } add_shortcode( 'get_selected_filter', 'get_selected_filter_fun' ); //Loop Counter add_shortcode('incrementor', 'incrementor'); function incrementor() { static $i = 1; return $i++; } 2. Register both shortcodes first ‘get_selected_filter’ and ‘incrementor’ in Toolset >> Settings >> Front-end Content >> Third-party shortcode arguments. 3. Then you can use these shortcodes in the View like this (its recommend to use in “Templates for this View” section since you are using ajax): [php][wpv-conditional if="( '[incrementor]' eq '1' )"] [get_selected_filter taxonomy="bedcategory"] // replace taxonomy name here [get_selected_filter taxonomy="gender"] [/wpv-conditional] [php] Other solution could be using Custom jQuery code as client has done here: |
2 | 11 | hace 7 años, 3 meses | ||
Reset Button breaks my jQuery .click function
Iniciado por: nicholasM
en: Toolset Professional Support
Problem: Solution: jQuery(document).ready(function($){ $(document).on('click', '.FilterTopLevel-trigger', function(){ $(this).next().toggleClass("ShowOptions"); $(this).toggleClass("TriggerSelected"); $('.FilterTopLevel-trigger').not(this).next().removeClass("ShowOptions"); $('.FilterTopLevel-trigger').not(this).removeClass("TriggerSelected"); }); $(document).on('click', '.FilterSubmit', function(){ $(".FilterTopLevel-trigger").next().removeClass("ShowOptions"); }); }); |
2 | 6 | hace 7 años, 3 meses | ||
limit Checkboxes to one selection?
Iniciado por: nicholasM en: Toolset Professional Support |
2 | 3 | hace 7 años, 3 meses | ||
Custom Search Filter layout
Iniciado por: nicholasM en: Toolset Professional Support |
1 | 2 | hace 7 años, 3 meses | ||
Inserting New Filter, taxonomy no longer has option for terms with no posts
Iniciado por: nicholasM
en: Toolset Professional Support
Problem: I would like my View's taxonomy filter to include all terms, even if they are not associated with any posts. Solution: In the View's Custom Search settings, choose "Let me choose individual settings manually," then select "Always show all values for options." Fill in the remaining settings as desired. Relevant Documentation: https://toolset.com/documentation/user-guides/front-page-filters/ |
2 | 5 | hace 7 años, 3 meses |