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