Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct text fields in backend in all languages but in frontend showing always default language #53

Open
mrk197702 opened this issue Nov 8, 2019 · 0 comments

Comments

@mrk197702
Copy link

mrk197702 commented Nov 8, 2019

Hello.
I have Polylang Pro and ACF Pro. I have two languages english and spanish, in the backend I have some text field which displays correctly for each language but in the frontend spanish texts are shown in english HP. why?

To fix the problem I did like that forcing page ID according to the language:

if(get_locale()=='es_PE'){
$pageID = 6;
}else if(get_locale()=='en_US'){
$pageID = 243;
}

otherwise page ID is always 6 also for 'en_US'.
This is not an elegant way to solve but it works

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant