simonM-5
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 |
---|---|---|---|---|---|
String Translations have been lost!!
Started by: simonM-5 in: Toolset Professional Support |
3 | 13 | 4 years, 10 months ago | ||
Implement Toolset Messenger or not?
Started by: simonM-5 in: Toolset Professional Support |
2 | 5 | 4 years, 10 months ago | ||
Posts created/updated in 2nd language only visible in 2nd language
1
2
Started by: simonM-5 in: Toolset Professional Support |
3 | 27 | 4 years, 10 months ago | ||
German and Spanish taxonomy translations are sorting by the English name
Started by: simonM-5 in: Toolset Professional Support |
3 | 9 | 4 years, 11 months ago | ||
Email notification not being sent from From created via Toolset
1
2
3
4
Started by: simonM-5 in: Toolset Professional Support |
2 | 52 | 4 years, 11 months ago | ||
Translated Custom Taxonomies show as "No items found" using non-default language
Started by: simonM-5 in: Toolset Professional Support |
2 | 13 | 4 years, 11 months ago | ||
Conditional login in different languages (with WPML enabled)
1
2
Started by: simonM-5
in: Toolset Professional Support
Problem: I am displaying a login form on my site using the Views login form shortcode wpv-login-form. The site is in 3 languages, so the shortcode has been translated. The redirect URL is different depending on the language. That's fine, but I would like to redirect certain User roles to a different URL. Again, the URL is different for each language. Solution: Keep the login shortcodes as they are currently written and translated. Use the default redirect URLs in the shortcodes. Use the following custom code to redirect specific User roles to another URL: function my_login_redirect( $redirect_to, $request, $user ) { //is there a user to check? if ( isset( $user->roles ) && is_array( $user->roles ) ) { //check for admins if ( in_array( 'administrator', $user->roles ) ) { // redirect them to the default place return $redirect_to; } elseif ( in_array( 'family', $user->roles ) ) { return $redirect_to; }elseif( in_array( 'native_nanny', $user->roles ) ){ switch( $redirect_to ) { case get_site_url() . '/de/native-nanny-finden': $redirect_to = get_site_url() . '/de/job-finden'; break; case get_site_url() . '/es/encuentra-tu-native-nanny': $redirect_to = get_site_url() . '/es/encuentra-un-trabajo'; break; default: $redirect_to = get_site_url() . '/en/find-a-job'; break; } } } return $redirect_to; } add_filter( 'login_redirect', 'my_login_redirect', 10, 3 ); Note that these redirects are very tightly coupled to the URLs used in the login form shortcode and the URLs of the actual redirect pages. If any of those change, the code must be updated. Relevant Documentation: |
3 | 17 | 5 years ago | ||
Content template behaving differently on new posts than on old posts
Started by: simonM-5
in: Toolset Professional Support
Problem: All posts created as of today are behaving strangely. Solution: I suggest you edit those problem posts, setup the post author, and test again. Relevant Documentation: |
2 | 5 | 5 years ago | ||
View has ceased showing on front end, was working fine previously
Started by: simonM-5
in: Toolset Professional Support
Problem: For some reason, this one View has ceased to work. We tried removing it from the Content Template, then adding it in again (under the photograph in the first column), but that didn't work. Solution: You just need to use content template shortcodes, for example: Relevant Documentation: |
2 | 3 | 5 years ago | ||
Entire search results behaving like a hyperlink when user is not logged in
Started by: simonM-5 in: Toolset Professional Support |
2 | 3 | 5 years ago | ||
Upload country list for Custom Field of type Select
Started by: simonM-5 in: Toolset Professional Support |
2 | 5 | 5 years ago | ||
Calculate age based on Date of Birth field
Started by: simonM-5
in: Toolset Professional Support
Problem: I would like to display a User's age based on a custom date field that stores their birthdate. Solution: Use the following custom shortcode: add_shortcode( 'time_ago', 'time_ago_func'); function time_ago_func($atts){ global $wpdb; extract( shortcode_atts( array( 'birthdate' => '', ), $atts ) ); // handle the case where birthdate field is not set if( !$birthdate ) { return ''; } $age = floor((time() - $birthdate)/(365*24*60*60)); return $age; } Use the following syntax to display the User's age: [time_ago birthdate='[types usermeta="nanny-date-of-birth" raw="true" user_current="true"][/types]'] years old |
2 | 7 | 5 years, 1 month ago | ||
Uploading a photo on Add New User form prevents user from completing form
Started by: simonM-5 in: Toolset Professional Support |
3 | 12 | 5 years, 1 month ago | ||
Password reset functionality not working correctly
Started by: simonM-5
in: Toolset Professional Support
Problem: I have a site that contains the password reset shortcode, but it's not working as expected in the development environment. Solution: Check the URLs to be sure the domain is accurate and the URL is complete. Use a migration plugin to handle text replacement during migration between environments. |
2 | 7 | 5 years, 1 month ago | ||
Parent/child taxonomy Views (Language > Proficiency Level)
Started by: simonM-5
in: Toolset Professional Support
Problem: Solution: You can find the proposed solution in this case with the following reply: Relevant Documentation: |
2 | 11 | 5 years, 1 month ago |