Hi Chouby,
Thanks for your response.
The problem was not introduced by the pll_get_post_types. I just added this filter to try change the language of a cpt from the admin screen to see if that solves the problem, and it does.
The problem is always there whether the filter exists or not (unless if I manually change the language from the admin screen as I said) because Polylang always adds this little condition to the query :
pll_tr.term_taxonomy_id = 4
where 4 is the id of the term with value of "ar".
I hope I explained the issue well.
Thanks again, waiting for your response :)
↧
karimit on "[Plugin: Polylang] Setting default language for custom post types"
↧