Sean
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 |
---|---|---|---|---|---|
Calendar Picker Not Responding
Iniciado por: Sean en: Toolset Professional Support |
2 | 3 | hace 6 años, 9 meses | ||
Submit Once and Save in Two Fields
Iniciado por: Sean en: Toolset Professional Support |
2 | 5 | hace 6 años, 11 meses | ||
Need to Strip Views Formatting
Iniciado por: Sean
en: Toolset Professional Support
Problem: I would like to use a View to output a classname for an HTML element. Different classnames should be displayed depending on whether or not any results are found by the View. In order for this to work correctly, no extra markup or spaces should be included in the View output. Solution: <span class="[wpv-view name='my-view-slug' output='raw']">content</span> - Add the following filter code to functions.php: add_filter( 'wpv_filter_wpv_view_shortcode_output', 'prefix_clean_view_output', 5, 2 ); function prefix_clean_view_output( $out, $id ) { if ( $id == '14' ) { //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 ); } else { // handle no results found section $start = strpos( $out, '>' ); if ( $start !== false) { $out = substr( $out, $start + 1 ); $end = strpos( $out, '<' ); $out = trim(substr( $out, 0, $end )); } } } return $out; } - Remove all the spaces from your loop output editor so everything is on one line: [wpv-layout-start][wpv-items-found]<!-- wpv-loop-start --><wpv-loop>classname-a</wpv-loop><!-- wpv-loop-end -->[/wpv-items-found][wpv-no-items-found]classname-b[/wpv-no-items-found][wpv-layout-end] - Finally, remove the filter meta shortcode from the Filter and Loop Output Integration Editor panel of your View: [wpv-filter-meta-html] |
2 | 14 | hace 6 años, 11 meses | ||
Conditional Logic from a Parent's URL Parameter Custom Field
1
2
3
Iniciado por: Sean en: Toolset Professional Support |
6 | 37 | hace 7 años, 1 mes | ||
Cred Post Parent no Longer Works
Iniciado por: Sean en: Toolset Professional Support |
2 | 7 | hace 7 años, 1 mes | ||
Layout Design for Cred Form Possible?
Iniciado por: Sean en: Toolset Professional Support |
3 | 6 | hace 7 años, 2 meses | ||
Checkboxes Appear Checked When Editing via CRED
Iniciado por: Sean
en: Toolset Professional Support
Problem: Solution: |
3 | 12 | hace 7 años, 3 meses | ||
Cannot Update Custom Posts
Iniciado por: Sean en: Toolset Professional Support |
2 | 4 | hace 7 años, 3 meses | ||
CRED Conditional Logic Problem
Iniciado por: Sean en: Toolset Professional Support |
3 | 18 | hace 7 años, 6 meses | ||
All Single Checkboxes Are Checked by Default
Iniciado por: Sean en: Toolset Professional Support |
2 | 5 | hace 7 años, 9 meses | ||
Cred to Create Grandchild Post
Iniciado por: Sean en: Toolset Professional Support |
2 | 10 | hace 8 años | ||
CRED Edit of Time not Working
Iniciado por: Sean en: Toolset Professional Support |
4 | 13 | hace 8 años, 2 meses | ||
Passing Multiple Values to CRED
Iniciado por: Sean en: Toolset Professional Support |
2 | 6 | hace 8 años, 4 meses | ||
Setting Checkbox Values in CRED
Iniciado por: Sean en: Toolset Professional Support |
2 | 7 | hace 8 años, 4 meses | ||
Linking to Page of Child Posts from Parent
Iniciado por: Sean en: Toolset Professional Support |
2 | 7 | hace 8 años, 4 meses |