Andreas K.
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 |
---|---|---|---|---|---|
Keep show/hide div open after Ajax filters
Started by: Andreas K. in: Toolset Professional Support |
2 | 10 | 5 years, 2 months ago | ||
Cannot style labels for checkboxes in "checked" state on search view
1
2
Started by: Andreas K. in: Toolset Professional Support |
2 | 16 | 5 years, 2 months ago | ||
Toolset CPT with custom repeatable fields and WPML translation issues
Started by: Andreas K.
in: Toolset Professional Support
Problem: The issue here is that the user wanted to get the language of a specific post as well as the Language of the current page on the frontend. Solution: This can be done by using the shortcodes below. // Add Shortcode function get_post_language( $atts ) { // Attributes $atts = shortcode_atts( array( 'id' => '', ), $atts ); $language = apply_filters( 'wpml_post_language_details', NULL, $atts['id'] ) ; return $language['language_code']; } add_shortcode( 'get_post_language', 'get_post_language' ); To get the current language being viewed you can use the shortcode below. // Add Shortcode function current_language() { $my_current_lang = apply_filters( 'wpml_current_language', NULL ); return $my_current_lang; } add_shortcode( 'current_language', 'current_language' ); You can add them to the toolset custom code section in Toolset -> Settings -> Custom Code and activate the snippet. The shortcodes that will be generated are And Now for the get_post_language shortcode i'm passing in the id of a post to get the language of that post based on its ID. |
2 | 7 | 5 years, 2 months ago | ||
How to create a GDPR consent for Toolset Maps
1
2
Started by: Andreas K.
in: Toolset Professional Support
Problem: Solution: |
2 | 18 | 5 years, 2 months ago |