oriolc
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 |
---|---|---|---|---|---|
How to use the page ID to get the page link in a CRED email notification
Started by: oriolc
in: Toolset Professional Support
Problem: I would like to send an email notification when my CRED form is submitted. In that notification, I would like to include information about the page where the CRED form was displayed. Solution: Capture the current page ID in a generic field, and use the cred_save_data hook to store it in a custom field on the post created by CRED. First, add a generic hidden field to your CRED form. [cred_generic_field field='currentpageid' type='textfield' class='' urlparam=''] { "required":0, "validate_format":0, "default":"[wpv-post-id]" } [/cred_generic_field] Next, add a custom field to the post type that is created by your CRED form. Make the slug of this field something unique. Then add this code to functions.php: add_action('cred_save_data', 'save_parent_link',10,2); function save_parent_link($post_id, $form_data) { // if a specific form if ($form_data['id']==550) { if (isset($_POST['currentpageid'])) { $parent_link = get_permalink($_POST['currentpageid']); update_post_meta($post_id, 'wpcf-customfieldslug', $parent_link, true); } } } Modify the 550 to match your CRED form ID. Modify wpcf-customfieldslug to be wpcf- plus your actual custom field slug. Create some test posts using CRED. This will enable the custom field in your CRED email notification field selection area. Relevant Documentation: https://toolset.com/documentation/user-guides/cred-api/#csd |
2 | 12 | 7 years, 4 months ago | ||
Change input value
Started by: oriolc in: Toolset Professional Support |
2 | 6 | 7 years, 4 months ago | ||
cred-custom-post-type-front-end-translations
Started by: oriolc in: Toolset Professional Support |
2 | 2 | 7 years, 5 months ago | ||
Cargar multiples imagenes de una sola vez
Started by: oriolc in: Soporte profesional de Toolset |
2 | 2 | 7 years, 6 months ago | ||
Google Analytics with two domain + Divi integration + Toolset Layout
Started by: oriolc in: Toolset Professional Support |
2 | 7 | 7 years, 6 months ago | ||
Author cred form
Started by: oriolc
in: Toolset Professional Support
Problem: I have a CRED form placed on my site in a custom Page. The CRED form creates a post that has no relationship to the custom Page, but I would like to send a notification to the author of the custom Page using CRED email notifications. Solution: Include a generic email field in your CRED form that saves the Page author's email address. Be sure to use the $current-page operator, meta format and meta key values as shown below. Hide this field using CSS. Submit the form once with the field enabled to populate the option in your email notification. <div style="display:none;">[cred_generic_field field="author-email" type="email" class='' urlparam=""] { "required":0, "validate_format":0, "persist":1, "default":"[wpv-post-author id='$current-page' format='meta' meta='user_email']" } [/cred_generic_field] </div> Relevant Documentation: https://toolset.com/documentation/user-guides/inserting-generic-fields-into-forms/ |
2 | 9 | 7 years, 6 months ago | ||
Problems to modify text
Started by: oriolc in: Toolset Professional Support |
2 | 2 | 7 years, 7 months ago | ||
Timeout Issue
Started by: oriolc in: Toolset Professional Support |
2 | 3 | 7 years, 7 months ago | ||
Failed to load resource: the server responded with a status of 500
1
2
Started by: oriolc
in: Toolset Professional Support
Problem: And the page shows a blank white screen and shows this type of error: Failed to load resource: the server responded with a status of 500. - In the older version of CRED, this was not happening. Solution: This issue occurred due to a conflict between Divi Theme, Yoast SEO, Toolset Divi Integration and Toolset CRED plugins. The fix for this issue was released Toolset CRED v1.8.7 that will solve the error while editing pages with CRED shortcode when also using Divi and Yoast. - Please make sure and update CRED and all Toolset plugins to latest versions from My Account >> Downloads page to resolve this and it has many other important fixes as well: Relevant Documentation: |
2 | 24 | 7 years, 8 months ago |