Eric
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 |
---|---|---|---|---|---|
Images attached via custom field don't "un-attach" upon removal in post editor
Iniciado por: Eric en: Toolset Professional Support |
2 | 2 | hace 1 año, 6 meses | ||
Autocomplete not working on address field
Iniciado por: Eric en: Toolset Professional Support |
2 | 5 | hace 3 años, 3 meses | ||
Set/limit number of words or character for custom field output on front-end grid
Iniciado por: Eric en: Toolset Professional Support |
2 | 2 | hace 3 años, 5 meses | ||
Using Toolset Address field with FacetWP
Iniciado por: Eric en: Toolset Professional Support |
2 | 4 | hace 3 años, 5 meses | ||
CRED edit form with Beaver Builder Themer
Iniciado por: Eric en: Toolset Professional Support |
2 | 2 | hace 4 años, 4 meses | ||
State and City dropdowns for CRED
Iniciado por: Eric en: Toolset Professional Support |
2 | 6 | hace 4 años, 5 meses | ||
Latest Views update prevents post masonry grid from appearing
1
2
Iniciado por: Eric en: Toolset Professional Support |
2 | 18 | hace 4 años, 7 meses | ||
Create slider with images uploaded from custom field
Iniciado por: Eric en: Toolset Professional Support |
3 | 9 | hace 4 años, 8 meses | ||
Syntax Highlighting not Working
Iniciado por: Eric en: Toolset Professional Support |
2 | 2 | hace 5 años, 8 meses | ||
Post Group restricted content gets display when using anything but Default Error
Iniciado por: Eric en: Toolset Professional Support |
2 | 9 | hace 6 años, 1 mes | ||
Automatically adding posts of a category to a post group
Iniciado por: Eric en: Toolset Professional Support |
2 | 4 | hace 6 años, 2 meses | ||
Wrapping Types field in a (registered) third-party shortcode not working
Iniciado por: Eric
en: Toolset Professional Support
Problem: I would like to use the Email Encoder Bundle plugin to encode a phone number from a Types field. Solution: Use a custom shortcode to apply the EEB plugin API and the Types field API together: function ts_eeb_field_func($atts) { global $post; $a = shortcode_atts( array( 'field' => '', 'id' => $post->ID, ), $atts ); $field = types_render_field( $a['field'], array( 'id'=>$a['id'] )); return eeb_content( $field ); } add_shortcode("ts-eeb-field", "ts_eeb_field_func"); Relevant Documentation: |
2 | 3 | hace 6 años, 2 meses | ||
Method for user to choose post as «favorite»
1
2
Iniciado por: Eric
en: Toolset Professional Support
Problem: I would like to allow my Users to "favorite" posts. Solution: [cred_generic_field field='your-lockbox-agent-id' type='select' class='' urlparam=''] { "required":0, "validate_format":0, "default":[[types usermeta="your-lockbox-agent-id" output="raw" user_current="true"][/types]], "options":[[wpv-view name='list-of-lockbox-agents-view-for-cred-forms']] } [/cred_generic_field] - Create a View of posts that will provide the options for the generic select field. Use this loop 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 following custom filter code to your child theme's functions.php file: add_filter( 'wpv_filter_wpv_view_shortcode_output', 'prefix_clean_view_output', 5, 2 ); function prefix_clean_view_output( $out, $id ) { $ids = array( 12345, 67890 ); 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; } - Replace 12345, 67890 with the View's ID, or a comma-separated list of View IDs if you want to apply this filter to more than one View. add_action('cred_save_data', 'save_new_lockbox_agent',10,2); function save_new_lockbox_agent($user_id, $form_data) { $ids = array( 38, 78 ); if( in_array( $form_data['id'], $ids )){ $agent = $_POST['your-lockbox-agent-id']; update_user_meta($user_id, 'wpcf-your-lockbox-agent-id', $agent ); } } Relevant Documentation: |
3 | 27 | hace 6 años, 5 meses |