Skip to content

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

Open
@mrk197702

Description

@mrk197702

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions