toolset-dave
Support threads created in the last 30 days: 0
Favorite Forum Topics
This user has no favorite topics.
Forum Topics Created
Status | Topic | Supporter | Voices | Posts | Freshness |
---|---|---|---|---|---|
Problem with square brackets
Started by: toolset-dave in: Toolset Professional Support |
2 | 2 | 6 years, 11 months ago | ||
Problem with the same address in cluster
Started by: toolset-dave
in: Toolset Professional Support
Problem: Solution: Relevant Documentation: |
2 | 3 | 6 years, 11 months ago | ||
Toggle button in Group of Repeating Fields
Started by: toolset-dave
in: Toolset Professional Support
Problem: <button data-toggle="collapse" data-target="#obsah">VÍCE</button> <div id="obsah" class="collapse"> [wpv-post-body view_template="None"] </div> If I click on the button nothing happens. If I place code for button into view for parent, it works. And after, how to secure that only the related post-body will show, not all of them? Solution: <button data-toggle="collapse" data-target="#obsah">VÍCE</button> <div id="obsah" class="collapse"> To: <button data-toggle="collapse" data-target="#obsah-[wpv-post-id]">VÍCE</button> <div id="obsah-[wpv-post-id]" class="collapse"> |
2 | 8 | 6 years, 12 months ago | ||
Shortcode in Divi Counter Module not working
Started by: toolset-dave in: Toolset Professional Support |
2 | 3 | 6 years, 12 months ago | ||
Map in Custom Search. How to display default location when nothing is found?
Started by: toolset-dave in: Toolset Professional Support |
2 | 3 | 6 years, 12 months ago | ||
Weird results in custom search
Started by: toolset-dave in: Toolset Professional Support |
2 | 5 | 6 years, 12 months ago | ||
How to get output of View to JS
Started by: toolset-dave in: Toolset Professional Support |
2 | 3 | 7 years ago | ||
How to get the highest custom field value from all CPT?
Started by: toolset-dave
in: Toolset Professional Support
Problem: I would like to show the largest numeric value from a custom field applied to my custom post type. Solution: One way to do this in Toolset is to create a View of all Books, ordered by your custom field "price" (descending), and limited to 1 result. In the Loop Output you could use the wpv-post-field shortcode to output the value of your price custom field. Then apply the raw text filter to strip out the extra markup, and the View will return the value of the highest custom field. If you don't have that raw text filter, I'll include it here: add_filter( 'wpv_filter_wpv_view_shortcode_output', 'prefix_clean_view_output', 5, 2 ); function prefix_clean_view_output( $out, $id ) { $ids = array( 1, 2, 3, 4 ); if ( in_array( $id, $ids ) ) { $start = strpos( $out, '<!-- wpv-loop-start -->' ); if ( $start !== false && strrpos( $out, '<!-- wpv-loop-end -->', $start ) !== false ) { $start = $start + strlen( '<!-- wpv-loop-start -->' ); $out = substr( $out , $start ); $end = strrpos( $out, '<!-- wpv-loop-end -->' ); $out = substr( $out, 0, $end ); } else { $start = strpos( $out, '>' ); if ( $start !== false) { $out = substr( $out, $start + 1 ); $end = strpos( $out, '<' ); $out = trim(substr( $out, 0, $end )); } } } return $out; } Modify $ids to include a comma-separated list of the numeric IDs of any View you would like to filter to output the raw Loop Output with no extra markup. Finally, you may need to disable "Don't include current page in query result" in the View editor. |
2 | 5 | 7 years ago | ||
Price range slider
Started by: toolset-dave in: Toolset Professional Support |
2 | 2 | 7 years ago | ||
How to change label of Toggle button based on its state?
Started by: toolset-dave
in: Toolset Professional Support
Problem: Solution: You can find the proposed solution with the following reply: Relevant Documentation: |
2 | 5 | 7 years ago | ||
Coupon code for CRED form
Started by: toolset-dave in: Toolset Professional Support |
2 | 2 | 7 years ago | ||
Conditional display based on parent post
Started by: toolset-dave
in: Toolset Professional Support
Problem: I would like to use conditional HTML to display some content based on whether or not the current User has created a post in some other custom post type. Solution: You can use a View's built-in results found conditional to do this. [wpv-layout-start] [wpv-items-found] <!-- wpv-loop-start --> Link to book form Link to poster form ... etc... <wpv-loop></wpv-loop> <!-- wpv-loop-end --> [/wpv-items-found] [wpv-no-items-found] Link to author form [/wpv-no-items-found] [wpv-layout-end] |
2 | 3 | 7 years ago | ||
Styling text inputs in CRED forms
Started by: toolset-dave
in: Toolset Professional Support
Problem: Solution: div[data-item_name="textfield-*"] input { To: div[data-item_name*="textfield-"] input { |
2 | 5 | 7 years ago | ||
Bootstrap radio buttons
Started by: toolset-dave
in: Toolset Professional Support
Problem: But I don't know how to make it functional. I have found documentation here: https://getbootstrap.com/docs/3.3/javascript/#buttons-checkbox-radio Solution: 1. Please use your post radio field like this: <div class="bootstrap-radio"> [cred_field field='doruceni-zdarma' post='poskytovatel' value='' urlparam='' output='bootstrap'] </div> 2. Please add JS in CRED JS Editor: jQuery(document).ready(function( $ ){ $('.bootstrap-radio').find('input:checked').parents('li').addClass("active"); $('.bootstrap-radio').find('li').on('click',function(){ $('.bootstrap-radio').find('li').removeClass('active'); $(this).addClass('active'); }); }); 3. Please add following CSS in CRED CSS Editor: .bootstrap-radio ul { padding-left: 0; } .bootstrap-radio li { background-color: #337ab7; border-radius:4px; border:1px solid #204d74; cursor:pointer; float:left; list-style:none; } |
2 | 8 | 7 years ago | ||
Translation in Parent selector
Started by: toolset-dave in: Toolset Professional Support |
2 | 3 | 7 years ago |