Open fintinc opened 11 months ago
I don't manage to reproduce and I don't understand what you mean with "ACF Message field", what is that? Please give a very concise example to reproduce, by explaining very precisely which fields you select and how you create the option page.
Hello and thanks for looking into this. I try to explain more precisely:
if( function_exists('acf_add_options_page') ) { acf_add_options_page(array( 'page_title' => 'Beiträge Einstellungen', 'menu_title' => 'Beiträge Einstellungen', 'menu_slug' => 'posts-settings', )); }
I guess the solution would be, if you could integrate the language switch buttons on the option page. In earlier versions (link 3.13.x) there was also no language switch buttons on the ACF Option Page, but the visibility of the different language fields changed according to the main language of the backend. e.g. if I changed to french using the main language switcher in the wp admin bar, the french input fields would be visible. This is not the case anymore in version 3.15.x.
Hello there,
Id thought id share my solution, just put the code in your theme functions.php.
Find your acf field id replacing field_60d9a9a5def77 in the below code. Then find the options page name in the url /wp-admin/admin.php?page=your_options_page_name and update the conditional:
add_action( 'admin_head', 'enable_qt_language_switcher_for_acf');
function enable_qt_language_switcher_for_acf(){
if (isset($_GET['page']) && 'your_options_page_name' == $_GET['page']) { ?>
<script>
acf.getField('field_60d9a9a5def77').addAction('ready', function(){
qTranslateConfig.js.get_qtx().setupLanguageSwitch();
});
</script>
<?php }
}
Regards
Since the ACF extra qTranslate fields are deprecated the ACF Option Page would need language switch buttons to see other languages than the standard language:
I fixed it quickly by adding a ACF Message field with the language switch buttons html code: