curtZ
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 |
---|---|---|---|---|---|
The CRED-edit-link is not working
Started by: curtZ in: Toolset Professional Support |
2 | 9 | 6 years, 10 months ago | ||
Filter view of selections from auto-populated checkboxes field
1
2
Started by: curtZ
in: Toolset Professional Support
Problem: Solution: Views can be filtered by several Attributes which includes a shortcode attribute, where you can pass the value of your custom field to the view. |
3 | 20 | 6 years, 11 months ago | ||
Auto-populate checkboxes field with custom post type title
Started by: curtZ
in: Toolset Professional Support
Problem: I would like to include a generic checkboxes field in my CRED form. Each post in a CPT should be shown as a checkbox. Solution: [cred_generic_field field='provider-checkboxes-slug' type='checkboxes' class='' urlparam=''] { "required":0, "validate_format":0, "default":[], "options":[ [wpv-view name='providers-checkboxes-options-view-slug'] ] } [/cred_generic_field] Use this format in your View to generate the proper options format: <wpv-loop> [wpv-item index=1] {"value":"[wpv-post-id]","label":"[wpv-post-title]"} [wpv-item index=other] ,{"value":"[wpv-post-id]","label":"[wpv-post-title]"} </wpv-loop> Add the raw text output filter in PHP to clean up the output a bit further: add_filter( 'wpv_filter_wpv_view_shortcode_output', 'prefix_clean_view_output', 5, 2 ); function prefix_clean_view_output( $out, $id ) { if ( $id == '9999' ) { //Please adjust to your Views ID $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 ); } } return $out; } Replace 9999 with your View ID. Relevant Documentation: |
3 | 12 | 6 years, 11 months ago | ||
How can we use ToolSet to create a site setup wizard similar to Discover-WP?
Started by: curtZ in: Toolset Professional Support |
2 | 4 | 7 years, 1 month ago |