Meg
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 |
---|---|---|---|---|---|
AJAX pagination does not work with custom role
Started by: Meg in: Toolset Professional Support |
2 | 8 | 2 years, 2 months ago | ||
AJAX pagination does not work with nested view
Started by: Meg in: Toolset Professional Support |
2 | 12 | 2 years, 3 months ago | ||
AJAX pagination does not work with nested view
Started by: Meg in: Toolset Professional Support |
2 | 2 | 2 years, 4 months ago | ||
View slider pagination
Started by: Meg in: Toolset Professional Support |
2 | 4 | 2 years, 11 months ago | ||
Multilanguage Registration Form
Started by: Meg
in: Toolset Professional Support
Problem: The customer asked how the WordPress user "Language" field can be set through the Toolset's user form. Solution: Informed that there is no built-in method available in the Toolset Forms for this, so it will require some workaround and custom code. WordPress store's the ISO language code for the user's selected WordPress admin language as a value, in the user meta field with key 'locale'. In a user registration form, one can include a hidden generic field and fill its value with the language code of the current page's language. After that, the 'cred_save_data' hook can be used to programmatically set that selected language value into the user's 'locale' meta field: add_action('cred_save_data', 'my_save_data_action',10,2); function my_save_data_action($user_id, $form_data) { // if a specific form if ($form_data['id']==1234) { update_user_meta( $user_id, 'locale', $_POST['locale'] ); } } Relevant Documentation: https://toolset.com/documentation/programmer-reference/cred-api/#cred_save_data https://developer.wordpress.org/reference/functions/update_user_meta/ |
2 | 5 | 3 years ago | ||
Conditional and Reusable blocks
Started by: Meg
in: Toolset Professional Support
Problem: Solution: In the other hand, you can reuse a content template in the "same" way as a reusable block. Create a content template and use the conditional block inside of it. Then reuse it, with the "Content Template" block, everywhere you want. |
3 | 4 | 3 years ago | ||
Template Archive
Started by: Meg in: Toolset Professional Support |
2 | 6 | 3 years ago |