Andreas K.
Fils de soutien créés au cours des 30 derniers jours : 0
Sujets de forum favoris
This user has no favorite topics.
Sujets de forum créés
Status | Sujet | Supporter | Voix | Publications | Nouveauté |
---|---|---|---|---|---|
Keep show/hide div open after Ajax filters
Commencé par : Andreas K. in: Toolset Professional Support |
|
2 | 10 | Il y a 5 années et 6 mois | |
Cannot style labels for checkboxes in "checked" state on search view
1
2
Commencé par : Andreas K. in: Toolset Professional Support |
|
2 | 16 | Il y a 5 années et 6 mois | |
Toolset CPT with custom repeatable fields and WPML translation issues
Commencé par : 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 | Il y a 5 années et 6 mois | |
How to create a GDPR consent for Toolset Maps
1
2
Commencé par : Andreas K.
in: Toolset Professional Support
Problem: Solution: |
|
2 | 18 | Il y a 5 années et 6 mois |