Lara
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 |
---|---|---|---|---|---|
update ajax filter values with values from cred form
Started by: Lara in: Toolset Professional Support |
2 | 10 | 2 years, 12 months ago | ||
Use an AJAX View doesn't update on the fly, when he is nested in another view
Started by: Lara in: Toolset Professional Support |
2 | 9 | 3 years ago | ||
Generic select field with "Get options from a shortcode" — disable options
Started by: Lara in: Toolset Professional Support |
2 | 5 | 3 years, 4 months ago | ||
Infinite scrolling
Started by: Lara in: Toolset Professional Support |
2 | 5 | 3 years, 7 months ago | ||
Save generic select field (the label and not the value) in another cred field
Started by: Lara in: Toolset Professional Support |
2 | 5 | 3 years, 7 months ago | ||
Nested view: Filter child and parent posts through URL_PARAM
Started by: Lara in: Toolset Professional Support |
2 | 14 | 3 years, 8 months ago | ||
Orderby two custom fields in the same View, with one custom field is >= TODAY()
Started by: 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 | 3 years, 8 months ago | ||
change post type after form submission
Started by: Lara in: Toolset Professional Support |
2 | 6 | 3 years, 10 months ago | ||
Access repeating field and insert it into a new posts
Started by: 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 | 3 years, 10 months ago | ||
Access custom checkboxes field $_POST['wpcf-slug'] as an array
Started by: Lara in: Toolset Professional Support |
2 | 13 | 3 years, 11 months ago | ||
Automatically check checkboxes when creating intermediary post (many-to-many relationship) programmatically using toolset_connect_posts
Started by: 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 | 3 years, 11 months ago | ||
Repeating Custom Field: Embedded Media –> “wpv-for-each” doesn’t seem to work
Started by: 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 | 4 years, 1 month ago | ||
Assign a Post Field Group to two different Post Types
Started by: Lara in: Toolset Professional Support |
2 | 3 | 4 years, 1 month ago | ||
Sum filesize of all images attached to a certain post type
1
2
Started by: Lara in: Toolset Professional Support |
3 | 17 | 4 years, 1 month ago | ||
Repeating field: How to show file size for download
Started by: Lara in: Toolset Professional Support |
2 | 10 | 4 years, 2 months ago |