Skip to content

Option Pages always return default values #92

Description

@ayhan02

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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