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

Option Pages always return default values #92

Open
ayhankiz opened this issue Jun 5, 2024 · 1 comment
Open

Option Pages always return default values #92

ayhankiz opened this issue Jun 5, 2024 · 1 comment

Comments

@ayhankiz
Copy link

ayhankiz commented Jun 5, 2024

I want to pull the fields of the option pages based on the language, but I get the default language back every time.

This is how I register an options page:

acf_add_options_page([
    'page_title' => __('Allgemein', 'theme'),
    'menu_title' => __('Allgemein', 'theme'),
    'menu_slug' => 'site-settings',
    'redirect' => false,
    'show_in_graphql' => true,
    'graphql_field_name' => 'siteSettings',
    "position" => 2,
]);

I used ACF to create the fields for the options pages.

I have entered different content for each language.

DE
DE

Default:
DEF

EN:
EN

Nevertheless, I always get the following back:

EN | DE | Default:
Bildschirmfoto 2024-06-05 um 16 38 00

Am I doing something wrong?

@PSMJonas
Copy link

Got the same issue.

Fixed it in #93.

tavux-ratkaisut pushed a commit to tavux-ratkaisut/wp-graphql-polylang that referenced this issue Jun 24, 2024
tavux-ratkaisut added a commit to tavux-ratkaisut/wp-graphql-polylang that referenced this issue Jun 24, 2024
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

2 participants