Viewing 3 replies - 1 through 3 (of 3 total)
  • +1

    Would be nice to have this on pages, too!

    @dos81, as a temporary solution you can modify your lf_core_functions.php file (in the plugin’s folder) like this:

    Replace the whole line 37 (if($post-> etc.) with this line:

    if ( in_array ( $post->post_type, ["post","page"] ) ) {

    Go to line 50 and change is_single to is_singular

    Finally go back to the beginning and replace the whole line 5 (add_meta_box etc.) with these 3 lines:

    $screens = array( 'post', 'page' );
    foreach ( $screens as $screen ) {
    add_meta_box( 'lf_meta', 'Language', 'lf_language_code_meta', $screen, 'side', 'high' ); }
    Thread Starter dos81

    (@dos81)

    that workaround wokred fine; thank you very much!

    OT: but sadly it didn’t help with my plan: i’m using “WP reCaptcha Integration” to display a captcha in my “Contact Form 7” contact forms and wanted to be english in the english contract form and german in the german one. configured the captcha-plugin to show captchas in the “language of the page” but i think in this special case the language of the page doesn’t count but the language of the form… well, so the english ppl have to live with the german captcha ??

    Have you seen this and that? It seems the captcha language depends on the visitor’s browser language.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘not for pages’ is closed to new replies.