Support » Plugin: ACF Options For Polylang » Show all languages shows empty custom fields

  • markussss

    (@markussss)


    Hi,

    do you have any idea how to get rid of the “Show all languages” for an option page?

    I have one single option page created with the plugin from John A. Huebner II
    I have a custom field group for German (Polylang)
    I have a custom field group for English (Polylang)

    Everything works fine, except that there is this additional “Show all languages” area of the option page, that does not show the content that is added to the German or English option page.

    It’s empty.

    It’s not a big deal for me, but the client will definitely fill in data there and wonder why it does not work.

    Do you know how I can get rid of this?

    Hope you can advise and help

    Thanks in advance
    Markus

Viewing 1 replies (of 1 total)
  • Thread Starter markussss

    (@markussss)

    I tried that but that did not help either. I think the plugin is particularly for that use case, so I thought there could be even a setting I am not aware of.

    https://support.advancedcustomfields.com/forums/topic/options-page-polylang/

    add_filter( 'pll_admin_languages_filter', function ( $adminBarLanguages ) {
        global $pagenow;
        if ( $pagenow === 'admin.php' && isset( $_GET['page'] ) && $_GET['page'] === 'acf-options' ) {
            unset( $adminBarLanguages[0] );
        }
    
        return $adminBarLanguages;
    } );
Viewing 1 replies (of 1 total)
  • The topic ‘Show all languages shows empty custom fields’ is closed to new replies.