KentS9937
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 |
---|---|---|---|---|---|
Workflow for Frontend Editing of Repeatable Field Groups and redirect to parent post
Started by: KentS9937
in: Toolset Professional Support
Problem: I would like to use a Form to edit a repeatable field group (RFG). After the Form is submitted, I would like to redirect to the parent post. Solution: Use this custom code snippet to redirect to the parent post. Be sure to set your Form to redirect to some custom page. add_filter('cred_success_redirect', 'custom_redirect_rfg_editor',10,3); function custom_redirect_rfg_editor($url, $post_id, $form_data) { if ($form_data['id']==12345) $writer = toolset_get_related_post( $post_id, 'your-rfg-slug' ); return get_permalink($writer); return $url; } Replace 12345 with the numeric ID of this Form, and replace your-rfg-slug with your actual RFG slug. Relevant Documentation: |
2 | 3 | 6 years ago | ||
Trouble Adding a Capability to a Custom Role
Started by: KentS9937 in: Toolset Professional Support |
2 | 4 | 6 years, 2 months ago | ||
Cred_Delete_Post_Link Hanging
Started by: KentS9937
in: Toolset Professional Support
Problem: I'm using the cred_delete_post_link to delete the item. It works except it hangs with the message "deleting..". If I refresh the browser everything is good, the post has been deleted. I expected the "deleting.." message to go away and the page to refresh. Solution: The client has fixed the problem by adding a CSS class to the link: Relevant Documentation: |
2 | 3 | 6 years, 3 months ago | ||
Displaying Grandparent Post-Link on Grandchild Post
Started by: KentS9937
in: Toolset Professional Support
Problem: Solution: The basic steps are So, starting from our grandchild post, we insert a Content Template where we specify that the source is the parent post, so that the template "thinks" its context is the parent. So when the fields inside are told to display fields from the parent, it is the parent of the parent. Relevant Documentation: |
2 | 3 | 6 years, 4 months ago | ||
Filtering Options by Taxonomy when Setting up Post Relationships
Started by: KentS9937 in: Toolset Professional Support |
2 | 5 | 6 years, 5 months ago | ||
Modify how the Selector for Parent Post displays
Started by: KentS9937
in: Toolset Professional Support
Problem: Solution: |
3 | 6 | 6 years, 6 months ago | ||
Confused about Many to One
Started by: KentS9937 in: Toolset Professional Support |
2 | 2 | 6 years, 6 months ago | ||
Datepicker only showing on first Date Field
Started by: KentS9937 in: Toolset Professional Support |
2 | 2 | 6 years, 6 months ago | ||
Parent Selection when Creating Child Post – Options not sorting
Started by: KentS9937
in: Toolset Professional Support
Problem: As soon the Select2 is used, no results are set by default and you need to type to find some results. Solution: |
2 | 3 | 6 years, 6 months ago | ||
Restricting View Filter to Specific Terms
Started by: KentS9937
in: Toolset Professional Support
Problem: I am trying to restrict a view to a subset of values for a field called positions: 1) When user open the the page, Views are filtered by: 2) When user change the field "Positions" in custom search form, views are filtered by user's chosen option Solution: That is expected result: Users can no longer use the filter to show just caregivers or just applicants. within Views's UI, you can setup only one of above two filters, you can not setup both two filters. As a work around, you can try these: 1) Restore back your view's filter settings, filter the view by URL parameter "wpv-wpcf-hr-position" https://toolset.com/documentation/user-guides/filtering-views-by-custom-fields/ 2) When user open the page, use Views filter hook "wpv_filter_query" to trigger a PHP function https://toolset.com/documentation/programmer-reference/views-filters/#wpv_filter_query In this PHP function, do these: 1) Check if there is URL parameter "wpv-wpcf-hr-position" if not, add a custom filter to query, filter the query by: Relevant Documentation: https://codex.wordpress.org/Class_Reference/WP_Query#Custom_Field_Parameters |
2 | 4 | 6 years, 6 months ago | ||
Conditional Message When Changing User Role
Started by: KentS9937
in: Toolset Professional Support
Problem: Solution: You can find proposed solution, in this case, with the following reply: Relevant Documentation: |
2 | 3 | 6 years, 7 months ago | ||
Using CRED forms for display only
Started by: KentS9937 in: Toolset Professional Support |
2 | 2 | 6 years, 7 months ago | ||
Unable to Save Draft or Publish Custom Post Type
Started by: KentS9937 in: Toolset Professional Support |
1 | 2 | 6 years, 8 months ago |