Please, tell me if I understood correctly.
I have to add this code in the functions.php of the skt white theme:
// [polylang lang=”en”]English[/polylang][polylang lang=”sp”]Spanish[/polylang]
function polylang_shortcode($atts, $content = null)
{
if (empty($content))
return ”;
extract( shortcode_atts( array(‘lang’ => ”), $atts ) );
if (empty($lang))
return “<h3>You must specify ‘lang’ using shortcode: polylang</h3>”;
return ($lang == pll_current_language()) ? $content : ”;
}
add_shortcode(‘polylang’, ‘polylang_shortcode’);
And then I have to insert the shortcode…
[polylang lang=”en”]English[/polylang][polylang lang=”sp”]Spanish[/polylang]
where?
Excuse my poor english, the post that you recommend me is full of technics words xD too much for my knowledge.
Thans a lot for your patient, I hope you will can help me to solve this situation.