himanshuS
Fils de soutien créés au cours des 30 derniers jours : 0
Sujets de forum favoris
This user has no favorite topics.
Sujets de forum créés
| Status | Topic | Supporter | Voix | Publications | Nouveauté |
|---|---|---|---|---|---|
|
Custom field not available for duplication
Commencé par : himanshuS
in: Toolset Professional Support
Problem: Solution: The 2nd field needs to be created manually. Or try this workaround: |
|
2 | 5 | Il y a 4 years, 4 months | |
|
Unable to see toolset field group on custom post
Commencé par : himanshuS
in: Toolset Professional Support
Problem: The customer reported that a specific custom field group was missing from the post edit screen. Solution: The post field group was available, but since the section was part of the accordion, the arrow next to it needed to be clicked, in order to open/collapse it. Relevant Documentation: n/a |
|
2 | 8 | Il y a 4 years, 4 months | |
|
Can I show a message before redirecting to a page?
Commencé par : himanshuS
in: Toolset Professional Support
Problem: Solution:
add_filter('gettext', function($translated_text, $untranslated_text, $domain){
if($untranslated_text == 'Please Wait. You are being redirected...' && $domain == 'wp-cred'){
$translated_text = 'The new message to display before the redirect';
}
return $translated_text;
}, 10, 3);
Note that the message will be wrapped in a tag, this means that you can't use any HTML tags, only the ones that can be wrapped in a tag. |
|
2 | 3 | Il y a 4 years, 4 months | |
|
Unable to auto login from CRED form
Commencé par : himanshuS in: Toolset Professional Support |
|
3 | 12 | Il y a 4 years, 4 months | |
|
How to show a user's information from user id in notification
Commencé par : himanshuS
in: Toolset Professional Support
Problem: The user wanted the custom user field values from a user ID passed through the generic field in the form notification. Solution: Suggested to use the "cred_subject_notification_codes" and "cred_body_notification_codes" filters to register custom placeholders for form notifications. Example:
add_filter('cred_subject_notification_codes', 'custom_generic_field_notification', 10, 1);
add_filter('cred_body_notification_codes', 'custom_generic_field_notification', 10, 1);
function custom_generic_field_notification( $defaultPlaceHolders ) {
// get the user ID from the generic field 'evaluatee-user-id'
$target_user_ID = $_REQUEST['evaluatee-user-id'];
// get the first name and last name from the $target_user_ID
$user_first_name = do_shortcode("[wpv-user field='user_firstname' id='".$target_user_ID."']");
$user_last_name = do_shortcode("[wpv-user field='user_lastname' id='".$target_user_ID."']");
// set those first name and last name values in the custom placeholders
$newPlaceHolders = array(
'%%evaluatee_first_name%%' => $user_first_name,
'%%evaluatee_last_name%%' => $user_last_name,
);
return array_merge($defaultPlaceHolders, $newPlaceHolders );
}
Relevant Documentation: |
|
2 | 5 | Il y a 4 years, 4 months | |
|
Is there a character limit on multiple lines custom field?
Commencé par : himanshuS
in: Toolset Professional Support
Problem: The user wanted to know if there is a character limit for the multiple lines type custom field. Solution: Informed that there is no character limit for the multiple lines type custom field. Relevant Documentation: n/a |
|
2 | 3 | Il y a 4 years, 4 months | |
|
How to show user dropdown list based on emails stored in custom post field?
Commencé par : himanshuS
in: Toolset Professional Support
Problem: The user asked how to add a custom select field in a form for the intermediary post edit form, that gets values from the child post's custom fields. Solution: Suggested to register a custom shortcode that can be used to populate the options for a generic field in the form. Relevant Documentation: https://toolset.com/documentation/customizing-sites-using-php/functions/#email https://developer.wordpress.org/reference/functions/get_posts/ https://developer.wordpress.org/reference/classes/wp_query/#author-parameters |
|
2 | 3 | Il y a 4 years, 4 months | |
|
How to programmatically add value to multiple value email field ?
Commencé par : himanshuS in: Toolset Professional Support |
|
2 | 3 | Il y a 4 years, 4 months | |
|
Unable to get user picture based on user ID
Commencé par : himanshuS in: Toolset Professional Support |
|
2 | 2 | Il y a 4 years, 4 months | |
|
Custom Code snippets editors shows error message but finds no error
Commencé par : himanshuS in: Toolset Professional Support |
|
2 | 6 | Il y a 4 years, 4 months | |
|
Custom Snippets Become Inactive Automatically
Commencé par : himanshuS in: Toolset Professional Support |
|
2 | 5 | Il y a 4 years, 4 months | |
|
How to create signup questionnaire before asking for email with user form?
Commencé par : himanshuS
in: Toolset Professional Support
Problem: Solution:
Theoretically, we can change both on the database level, but that may create inconsistencies with WordPress's cache. I would suggest to:
|
|
3 | 5 | Il y a 4 years, 4 months | |
|
How to allow collaboration between users on a custom post?
Commencé par : himanshuS in: Toolset Professional Support |
|
2 | 5 | Il y a 4 years, 5 months | |
|
Show custom field based on taxonomy value does not work
Commencé par : himanshuS in: Toolset Professional Support |
|
2 | 4 | Il y a 4 years, 5 months | |
|
Submit button gets hidden by conditional when it it not part of it.
Commencé par : himanshuS in: Toolset Professional Support |
|
3 | 8 | Il y a 4 years, 5 months |