marcialB
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 |
---|---|---|---|---|---|
Order posts by date in repeating field group
Started by: marcialB
in: Toolset Professional Support
Problem: The customer has several events, each with multiple dates stored in a repeating field group. They want to display all events in a list ordered by the date of the first event. The inner view correctly retrieves the next upcoming date of each event, but they want the outer view to use the same logic to order the events by the first upcoming date. Solution: We explained that due to the way repeatable field groups are implemented (as child posts), the fields for the event dates belong to the child posts, making it impossible to directly order the outer events by these fields. The suggested solution is to add a field directly to the event posts that records the next upcoming event date. This field can then be used to order the event posts. To automate this process, the customer can use the save_post hook to copy the upcoming date to the main post whenever changes are made, ensuring that the data stays up to date. |
2 | 3 | 4 months ago | ||
Get name of related post
Started by: marcialB in: Toolset Professional Support |
2 | 3 | 4 months ago | ||
Views using a relationship not showing all results
Started by: marcialB in: Toolset Professional Support |
2 | 6 | 1 year, 7 months ago | ||
Redirection loop
Started by: marcialB in: Toolset Professional Support |
2 | 3 | 1 year, 9 months ago | ||
Template not showing in Twenty Twenty-Three
Started by: marcialB in: Toolset Professional Support |
2 | 6 | 2 years ago | ||
Custom user fields not available in Views
Started by: marcialB in: Toolset Professional Support |
2 | 7 | 3 years, 4 months ago | ||
Pass parameter of CRED fields to another form via URL
Started by: marcialB
in: Toolset Professional Support
Problem: Solution: You can find proposed solution in this case with the following reply: Relevant Documentation: |
2 | 5 | 3 years, 7 months ago | ||
Display repeating field groups from related posts
Started by: marcialB in: Toolset Professional Support |
2 | 3 | 3 years, 8 months ago | ||
Scroll to ID on search results page
Started by: marcialB in: Toolset Professional Support |
2 | 3 | 3 years, 8 months ago | ||
Access doesn't hide whole page but only the main content
Started by: marcialB in: Toolset Professional Support |
2 | 2 | 3 years, 10 months ago | ||
Notify members about new posts
Started by: marcialB in: Toolset Professional Support |
2 | 2 | 4 years ago | ||
Automatically set parent post in form for repeatable field group
Started by: marcialB
in: Toolset Professional Support
Problem: Solution: - https://toolset.com/forums/topic/repeatable-field-group-form-auto-select-post-where-this-form-is-shown-elementor/ The trick is to bind the post using a content template, using the item attribute, or inside a view's loop. Relevant Documentation: |
2 | 3 | 4 years ago | ||
CRED: tinymce-error in text field
Started by: marcialB
in: Toolset Professional Support
Problem: Solution: Relevant Documentation: |
2 | 5 | 4 years, 2 months ago | ||
Automatically set a taxonomy term per CRED form
Started by: marcialB
in: Toolset Professional Support
Problem: I have 6 Forms that create custom posts. For each Form, I would like to automatically set one term in a custom taxonomy when the post is published. Solution: Use the cred_save_data API to programmatically set a term specific to each Form for the published posts: /* - Toolset support - for ticket #1691935 - */ // Bewerber: 13 = VR, 399 = Berater, 403 = Sportler; Inserate: 255 = VR, 584 = Berater, 586 = Sportler add_action('cred_save_data', 'ts_set_industry_term',100,2); function ts_set_industry_term($post_id, $form_data) { $forms = array( 13, 399, 403, 255, 584, 586 ); $terms = [ '13' => 'vr-mandate', '399' => 'berater-innen', '403' => 'sportler-innen', '255' => 'vr-mandate', '584' => 'berater-innen', '586' => 'sportler-innen', ]; $taxonomy = 'profil'; // -- you should not edit anything below this line if( in_array( $form_data['id'], $forms ) ) { $tag = array( $terms[$form_data['id']] ); wp_set_object_terms( $post_id, $tag, $taxonomy, true ); } }; Relevant Documentation: |
2 | 7 | 4 years, 5 months ago | ||
Form not adding product to cart
Started by: marcialB in: Toolset Professional Support |
2 | 5 | 4 years, 6 months ago |