simonM-5
Support threads created in the last 30 days: 2
Favorite Forum Topics
This user has no favorite topics.
Forum Topics Created
Status | Topic | Supporter | Voices | Posts | Freshness |
---|---|---|---|---|---|
WPML string translations not being respected
Started by: simonM-5 in: Toolset Professional Support |
|
2 | 10 | 4 years, 12 months ago | |
Split: Posts created/updated in 2nd language only visible in 2nd language – update post form with wpml with translations
1
2
Started by: simonM-5 in: Toolset Professional Support |
|
3 | 27 | 5 years ago | |
Toolset Messaging: Reply to message causes "You cannot view this message"
1
2
Started by: simonM-5 in: Toolset Professional Support |
|
2 | 23 | 5 years ago | |
String Translations have been lost!!
Started by: simonM-5 in: Toolset Professional Support |
|
3 | 13 | 5 years, 1 month ago | |
Implement Toolset Messenger or not?
Started by: simonM-5 in: Toolset Professional Support |
|
2 | 5 | 5 years, 1 month ago | |
Posts created/updated in 2nd language only visible in 2nd language
1
2
Started by: simonM-5 in: Toolset Professional Support |
|
3 | 27 | 5 years, 1 month ago | |
German and Spanish taxonomy translations are sorting by the English name
Started by: simonM-5 in: Toolset Professional Support |
|
3 | 9 | 5 years, 2 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 | 5 years, 2 months ago | |
Translated Custom Taxonomies show as "No items found" using non-default language
Started by: simonM-5 in: Toolset Professional Support |
|
2 | 13 | 5 years, 2 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, 3 months 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, 3 months 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, 3 months 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, 3 months ago | |
Upload country list for Custom Field of type Select
Started by: simonM-5 in: Toolset Professional Support |
|
2 | 5 | 5 years, 3 months 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, 4 months ago |