Lara
Fils de soutien créés au cours des 30 derniers jours : 0
Sujets de forum favoris
This user has no favorite topics.
Sujets de forum créés
Status | Sujet | Supporter | Voix | Publications | Nouveauté |
---|---|---|---|---|---|
update ajax filter values with values from cred form
Commencé par : Lara in: Toolset Professional Support |
2 | 10 | Il y a 3 années | ||
Use an AJAX View doesn't update on the fly, when he is nested in another view
Commencé par : Lara in: Toolset Professional Support |
2 | 9 | Il y a 3 années | ||
Generic select field with "Get options from a shortcode" — disable options
Commencé par : Lara in: Toolset Professional Support |
2 | 5 | Il y a 3 années et 4 mois | ||
Infinite scrolling
Commencé par : Lara in: Toolset Professional Support |
2 | 5 | Il y a 3 années et 7 mois | ||
Save generic select field (the label and not the value) in another cred field
Commencé par : Lara in: Toolset Professional Support |
2 | 5 | Il y a 3 années et 8 mois | ||
Nested view: Filter child and parent posts through URL_PARAM
Commencé par : Lara in: Toolset Professional Support |
2 | 14 | Il y a 3 années et 8 mois | ||
Orderby two custom fields in the same View, with one custom field is >= TODAY()
Commencé par : Lara
in: Toolset Professional Support
Problem: Use custom codes to setup date field filters. Solution: This is a custom codes problem, see the solution provided by client: Relevant Documentation: https://toolset.com/documentation/user-guides/views/date-filters/ |
2 | 4 | Il y a 3 années et 8 mois | ||
change post type after form submission
Commencé par : Lara in: Toolset Professional Support |
2 | 6 | Il y a 3 années et 10 mois | ||
Access repeating field and insert it into a new posts
Commencé par : Lara
in: Toolset Professional Support
Problem: I have a repeating custom field in a custom post type. When submitting a Form that creates this custom post type, I would like to create a cloned post that copies the values from the repeating custom field and inserts them automatically in the post clone. Solution: Use wp_insert_post in a cred_save_data hook to create a clone of the original post. Get the repeating field value from the $_POST superglobal, and loop over those values in a foreach loop, or other similar loop structure. Use add_post_meta to insert each value into the custom field in the cloned post. add_action('cred_save_data', 'my_save_data_action',10,2); function my_save_data_action($post_id, $form_data) { $forms = array( 123 ); if ( in_array( $form_data['id'], $forms ) ) { $gallery = $_POST['wpcf-fieldslug']; $new_book_args = array( 'post_title' => 'cloned book test from ' . $post_id, 'post_status' => 'publish', 'post_type' => 'book' ); // Insert the cloned post into the database $new_book_id = wp_insert_post( $new_book_args ); foreach( $gallery as $img ){ add_post_meta($new_book_id, 'wpcf-fieldslug', $img, false); } } } Relevant Documentation: |
2 | 7 | Il y a 3 années et 11 mois | ||
Access custom checkboxes field $_POST['wpcf-slug'] as an array
Commencé par : Lara in: Toolset Professional Support |
2 | 13 | Il y a 3 années et 11 mois | ||
Automatically check checkboxes when creating intermediary post (many-to-many relationship) programmatically using toolset_connect_posts
Commencé par : Lara
in: Toolset Professional Support
Problem: I have a custom checkboxes group field applied to the intermediary post type in a M2M relationship. Some of the checkboxes in this group are configured to be "checked" automatically when new posts are created, but the intermediary post created automatically by the toolset_connect_posts API does not have these checkboxes checked automatically. Solution: Our developers are investigating this issue. Until it is addressed, an undocumented custom code workaround is required. |
2 | 14 | Il y a 3 années et 12 mois | ||
Repeating Custom Field: Embedded Media –> « wpv-for-each » doesn’t seem to work
Commencé par : Lara
in: Toolset Professional Support
Problem: I have Repeating Custom Field: Embedded Media, where I insert YouTube Videos. How to display them in front-end? Solution: You can try [wpv-for-each] shortcode, for example: [wpv-for-each field="wpcf-embedded-youtube"] <div style="">[types field='embedded-youtube' ][/types]</div> [/wpv-for-each] Relevant Documentation: https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#wpv-for-each |
2 | 3 | Il y a 4 années et 1 mois | ||
Assign a Post Field Group to two different Post Types
Commencé par : Lara in: Toolset Professional Support |
2 | 3 | Il y a 4 années et 1 mois | ||
Sum filesize of all images attached to a certain post type
1
2
Commencé par : Lara in: Toolset Professional Support |
3 | 17 | Il y a 4 années et 2 mois | ||
Repeating field: How to show file size for download
Commencé par : Lara in: Toolset Professional Support |
2 | 10 | Il y a 4 années et 2 mois |