Andreas K.
In den letzten 30 Tagen erstellte Support-Threads: 0
Lieblings-Forenthemen
This user has no favorite topics.
Forum Topics Created
Status | Thema | Supporter | Stimmen | Artikel | Aktualität |
---|---|---|---|---|---|
Keep show/hide div open after Ajax filters
Gestartet von: Andreas K. in: Toolset Professional Support |
2 | 10 | vor 5 Jahren, 3 Monaten | ||
Cannot style labels for checkboxes in "checked" state on search view
1
2
Gestartet von: Andreas K. in: Toolset Professional Support |
2 | 16 | vor 5 Jahren, 3 Monaten | ||
Toolset CPT with custom repeatable fields and WPML translation issues
Gestartet von: 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 | vor 5 Jahren, 4 Monaten | ||
How to create a GDPR consent for Toolset Maps
1
2
Gestartet von: Andreas K.
in: Toolset Professional Support
Problem: Solution: |
2 | 18 | vor 5 Jahren, 4 Monaten |