radjan54
Forum Replies Created
-
Forum: Plugins
In reply to: [Polylang] get taxonomy term using sql queryForum: Plugins
In reply to: [Polylang] get taxonomy term using sql queryUse those fields within the while read loop, pll_get_term_language($dataTag[‘term_id’]) will give you the language of the item, so process or reject…
Forum: Plugins
In reply to: [Polylang] get taxonomy term using sql queryHello,
pll_get_term_language($dataTag[‘term_id’]) == pll_current_language()
I based my queries on this field to collect data with the current language…
Forum: Plugins
In reply to: [Polylang] Footer translation and polylangHello,
I used in my child theme footer.php the get_locale(), values for the languages can be found in wp/language admin screen (Locale).
i.e.
if (get_locale() == ‘en_GB’) {
…
} else {
…
}Forum: Plugins
In reply to: [Polylang] Add polylang to my headerHello, found that while looking for something else… sounds good…
https://gist.github.com/taninbkk/f95281b44b3762435777// Polylang Shortcode – https://ww.wp.xz.cn/plugins/polylang/
// Add this code in your functions.php
// Put shortcode [polylang] to post/page for display flagsfunction polylang_shortcode() {
ob_start();
pll_the_languages(array(‘show_flags’=>1,’show_names’=>0));
$flags = ob_get_clean();
return $flags;
}
add_shortcode( ‘polylang’, ‘polylang_shortcode’ );Forum: Plugins
In reply to: [Polylang] EDD/ Polylang: Cannot translate completly checkout pageSwitched to EN-US (instead of UK) and everything is fine… I was sure that I choose EN-UK but as it works…