[Plugin: WP Resume] How to make WP Resume plugin multilingual with WPML
-
WPML takes care of all admin aspects. For the shortcode to properly work in the current language it is needed to filter out the non-current language sections. This can be done with this hack added to wp_resume.php
// WPML doesn't filter get_terms directly (version WPML: 2.0.3 ; WP: 3.0.3) // This function will help exclude the non-current language terms when get_terms is called - therefore the resume sections. // Only works on pages specified within the function if enabled. add_filter( 'list_terms_exclusions', 'exclude_the_terms' ); function exclude_the_terms($exclusions) { if (class_exists('SitePress')) { //if ( is_page( array ( 2017, 3000 ) ) ) { global $sitepress; $exclusions .= $sitepress->exclude_other_terms( '', array( 'taxonomy' => 'wp_resume_section' ) ); return $exclusions; //} } }
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘[Plugin: WP Resume] How to make WP Resume plugin multilingual with WPML’ is closed to new replies.