Nicholas
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 |
---|---|---|---|---|---|
concerned that users will try and change the parent post id
Started by: Nicholas
in: Toolset Professional Support
Problem: The issue here is that the user wanted to set his CRED parent field to display only. Solution: Replace the default one with this and let me know if the ID gets auto-assigned to this field. [cred_generic_field field='_wpcf_belongs_product_id' type='textfield' class='parent-field-replacement' urlparam='parent_product_id'] { "required":0, "validate_format":0, "default":"" } [/cred_generic_field] Then add this jquery to disable the field. jQuery(".parent-field-replacement").prop("readonly", true); |
2 | 5 | 6 years, 9 months ago | ||
Post updates to the product post type
Started by: Nicholas
in: Toolset Professional Support
Problem: Solution: The only hook that is fired at that time that can be used to trigger some custom code is the cred_notification_recipients filter that can be used to modify who the notification is sent to. So we can create a dummy notification that is sent, say, 30 days before expiration, to some admin address, and then use that filter to trigger our code. Relevant Documentation: |
2 | 11 | 6 years, 9 months ago | ||
Yoast SEO plugin not adding meta tags to Woocommerce Views Product Template
Started by: Nicholas in: Toolset Professional Support |
2 | 6 | 6 years, 9 months ago | ||
Post content field parameter format=”noautop” not working
Started by: Nicholas
in: Toolset Professional Support
Problem: Solution: The Post body ShortCode instead supports the following attributes: This last one works only if view_template="None" and will produce the Post Body with wpautop, without wpautop or inherited from the parent Template when applicable Hence this is the attribute you want to use: |
2 | 3 | 6 years, 9 months ago | ||
Build post title
Started by: Nicholas
in: Toolset Professional Support
Problem: add_action('cred_save_data', 'build_post_title', 10, 2); function build_post_title($post_id, $form_data) { if ( get_post_type( $post_id ) == 'slug_post_type' ) { if ($form_data['id']==98 || 216) { $field1 = get_post_meta($post_id, 'wpcf-name-1', true); $field2 = get_post_meta($post_id, 'wpcf-name-2', true); $post_title=$field1.' + '.$field2; $slug = sanitize_title($post_title); wp_update_post(array('ID'=>$post_id, 'post_title'=>$post_title,'post_name' => $slug)); } } } Relevant Documentation: |
2 | 3 | 6 years, 9 months ago | ||
Mailchimp Pop Up Form Script is breaking view
1
2
Started by: Nicholas
in: Toolset Professional Support
Problem: The issue here was that the customer wanted to apply the mailchimp popup form script to his wordpress through an example code provided from mailchimp. <script type="text/javascript" src="//downloads.mailchimp.com/js/signup-forms/popup/embed.js" data-dojo-config="usePlainJson: true, isDebug: false"></script><script type="text/javascript">require(["mojo/signup-forms/Loader"], function(L) { L.start({"baseUrl":"mc.us17.list-manage.com","uuid":"144e2b841120da1b2d05b4e05","lid":"f7f8eb5e63"}) })</script> Solution: We currently have no solution for this as this script was not meant to work with wordpress or wasn't made wordpress compatible because even on a clean installation with non of our plugins the issue was still present where the script was generating errors in the console. The alternative is to use the embedded form or a mailchimp form plugin to have your subscription form. |
2 | 31 | 6 years, 9 months ago | ||
Split: Bug after upgrading to CRED version 1.9.4
1
2
Started by: Nicholas in: Toolset Professional Support |
2 | 29 | 6 years, 9 months ago | ||
Make post category field required
Started by: Nicholas
in: Toolset Professional Support
Problem: Solution: You can find proposed solution, in this case, with the following reply: Relevant Documentation: |
2 | 3 | 6 years, 9 months ago | ||
Error: Found 2 elements with non-unique id
Started by: Nicholas
in: Toolset Professional Support
Problem: Solution: You can find proposed solution in this case with the following reply: Relevant Documentation: |
2 | 6 | 6 years, 10 months ago | ||
Set a crowdfunding goal and show progress
Started by: Nicholas
in: Toolset Professional Support
Problem: The issue here is that the user wanted to know if they could setup a crowdfunding goal with just the use of the toolset plugins only. Solution: This would be possible to achieve with toolset but would require some amount of work and custom coding to setup. There are plugins out there that are dedicated for this and I was able to find one with a quick search This might be better suited for your proposed project that just using toolset alone. |
2 | 5 | 6 years, 10 months ago | ||
Views plugin custom search with ajax stopped working
1
2
3
Started by: Nicholas in: Toolset Professional Support |
2 | 43 | 6 years, 10 months ago | ||
Generic field default value wrong after upgrading to CRED version 1.9.4
Started by: Nicholas
in: Toolset Professional Support
Problem: I have a generic field in a CRED edit form. This field should be populated with the value of a custom field. The code I had in place before updating to CRED 1.9.4 was working, but now the generic field is not set correctly. Now, the generic field is showing the excerpt of the current page rather than the excerpt of the post being edited. Solution: [cred_generic_field field='post_content_substitute' type='textarea' class='new-textarea' urlparam='' placeholder='Write a few words...'] { "required":1, "validate_format":0, "default":"[wpv-post-excerpt format='noautop' id='[wpv-search-term param='post_id']']", "persist":1 } [/cred_generic_field] |
2 | 8 | 6 years, 10 months ago | ||
Get the ID of a youtube video and display it with a shortcode
Started by: Nicholas
in: Toolset Professional Support
Problem: I have a CRED form where Users can supply the URL of a YouTube video. I would like to store the video ID in a custom field so I can use it later in a shortcode. Solution: add_action('cred_save_data', 'cred_format_youtube_video_id',10,2); function cred_format_youtube_video_id($post_id, $form_data) { // if a specific form $forms = array(12,9876); if (in_array($form_data['id'], $forms)) { if (isset($_POST['my_custom_video_field'])) { $link = $_POST['my_custom_video_field']; $video_id = explode("?v=", $link); // http://www.youtube.com/watch?v=... if (empty($video_id[1])) { $video_id = explode("/v/", $link); // http://www.youtube.com/watch/v/.. } if (empty($video_id[1])) { $video_id = explode("/youtu.be/", $link); // https://youtu.be/... } $video_id = explode("&", $video_id[1]); // Deleting any other params $video_id = $video_id[0]; // here is your required video ID // update post meta with video ID update_post_meta($post_id, '__my_custom_video_field', $video_id); } } } Change 12,9876 to be a comma-separated list of all the forms where this custom functionality should be applied. Relevant Documentation: |
2 | 4 | 6 years, 10 months ago | ||
CRED email notification template looks broken even though tested in Litmus
1
2
Started by: Nicholas in: Toolset Professional Support |
2 | 22 | 6 years, 10 months ago | ||
Tracking of toolset views search in google analytics
Started by: Nicholas
in: Toolset Professional Support
Problem: The issue here is that the user wanted to know if it was possible to track the view searches with Google. Solution: Unfortunately no this is not possible. |
2 | 4 | 6 years, 11 months ago |