Polylang not translating Metabox fields [closed]

Turn off custom fields syncronisation on polylang. I would also then add specific code to tell polylang to copy (not sync) the metas upon translation creation (so when you click ‘+’ it will also copy the metas, but changing the metas after this, won’t sync with other translations): add_filter(‘pll_copy_post_metas’, ‘copy_post_metas’, 10, 2); function copy_post_metas($metas, $sync){ … Read more

get_comments not working consistantly with post_id

Turns out it was my use of the language plugin (polylang)… When I call the comments it adds a language filter: ‘lang’ => $currentLang So I had to explicitly override that: get_comments(array(‘post_id’=>31, ‘lang’ => $targetLang)); I still don’t know why I was sometimes able to get the other comments without this.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)