Eric
In den letzten 30 Tagen erstellte Support-Threads: 0
Lieblings-Forenthemen
This user has no favorite topics.
Forum Topics Created
Status | Thema | Supporter | Stimmen | Artikel | Aktualität |
---|---|---|---|---|---|
Images attached via custom field don't "un-attach" upon removal in post editor
Gestartet von: Eric in: Toolset Professional Support |
2 | 2 | vor 1 Jahr, 6 Monaten | ||
Autocomplete not working on address field
Gestartet von: Eric in: Toolset Professional Support |
2 | 5 | vor 3 Jahren, 3 Monaten | ||
Set/limit number of words or character for custom field output on front-end grid
Gestartet von: Eric in: Toolset Professional Support |
2 | 2 | vor 3 Jahren, 4 Monaten | ||
Using Toolset Address field with FacetWP
Gestartet von: Eric in: Toolset Professional Support |
2 | 4 | vor 3 Jahren, 5 Monaten | ||
CRED edit form with Beaver Builder Themer
Gestartet von: Eric in: Toolset Professional Support |
2 | 2 | vor 4 Jahren, 4 Monaten | ||
State and City dropdowns for CRED
Gestartet von: Eric in: Toolset Professional Support |
2 | 6 | vor 4 Jahren, 4 Monaten | ||
Latest Views update prevents post masonry grid from appearing
1
2
Gestartet von: Eric in: Toolset Professional Support |
2 | 18 | vor 4 Jahren, 7 Monaten | ||
Create slider with images uploaded from custom field
Gestartet von: Eric in: Toolset Professional Support |
3 | 9 | vor 4 Jahren, 7 Monaten | ||
Syntax Highlighting not Working
Gestartet von: Eric in: Toolset Professional Support |
2 | 2 | vor 5 Jahren, 7 Monaten | ||
Post Group restricted content gets display when using anything but Default Error
Gestartet von: Eric in: Toolset Professional Support |
2 | 9 | vor 6 Jahren | ||
Automatically adding posts of a category to a post group
Gestartet von: Eric in: Toolset Professional Support |
2 | 4 | vor 6 Jahren, 1 Monat | ||
Wrapping Types field in a (registered) third-party shortcode not working
Gestartet von: Eric
in: 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 | vor 6 Jahren, 2 Monaten | ||
Method for user to choose post as „favorite“
1
2
Gestartet von: Eric
in: 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 | vor 6 Jahren, 4 Monaten |