Andreas K.
Admite hilos creados en los últimos 30 días: 0
Debates favoritos del foro
Este usuario no tiene debates favoritos.
Temas del foro creados
Status | Debate | Supporter | Voces | Mensajes | Caducidad |
---|---|---|---|---|---|
Keep show/hide div open after Ajax filters
Iniciado por: Andreas K. en: Toolset Professional Support |
2 | 10 | hace 5 años, 3 meses | ||
Cannot style labels for checkboxes in "checked" state on search view
1
2
Iniciado por: Andreas K. en: Toolset Professional Support |
2 | 16 | hace 5 años, 3 meses | ||
Toolset CPT with custom repeatable fields and WPML translation issues
Iniciado por: Andreas K.
en: 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 | hace 5 años, 4 meses | ||
How to create a GDPR consent for Toolset Maps
1
2
Iniciado por: Andreas K.
en: Toolset Professional Support
Problem: Solution: |
2 | 18 | hace 5 años, 4 meses |