Hello,
Having problem translating home page featured title, link and content.
I followed instruction to set the wpml-config.xml:
<wpml-config>
<admin-texts>
<key name=’catchkathmandu_options’>
<key name=’search_display_text’ />
<key name=’homepage_headline’ />
<key name=’homepage_subheadline’ />
<key name=’homepage_headline_button’ />
<key name=’homepage_headline_url’ />
<key name=’more_tag_text’ />
<key name=’homepage_featured_title’>
<key name=’1′ />
<key name=’2′ />
…
</key>
<key name=’homepage_featured_url’>
<key name=’1′ />
<key name=’2′ />
…
</key>
<key name=’homepage_featured_content’>
<key name=’1′ />
<key name=’2′ />
…
</key>
</key>
</admin-texts>
</wpml-config>
Added the function in functions.php:
function catchkathmandu_polylang_invalidcache() {
delete_transient( ‘catchkathmandu_post_sliders’ );
delete_transient( ‘catchkathmandu_page_sliders’ );
delete_transient( ‘catchkathmandu_category_sliders’ );
delete_transient( ‘catchkathmandu_image_sliders’ );
delete_transient( ‘catchkathmandu_homepage_headline’ );
delete_transient( ‘catchkathmandu_homepage_featured_content’ );
delete_transient( ‘catchkathmandu_footer_content’ );
delete_transient( ‘catchkathmandu_footercode’ );
delete_transient( ‘catchkathmandu_featured_image’ );
}
add_action( ‘after_setup_theme’, ‘catchkathmandu_polylang_invalidcache’ );
All feilds are availble in Polylang Strings translations.
After editing and saving the translations, I browse the home page in both language and then the Polylang Strings translations are rewrited.
Does the Pro version would correct this situation?
Please Help,
Martin