Support

Account

Home Forums Backend Issues (wp-admin) Checkbox and wpml

Unread

Checkbox and wpml

  • Hello,
    i’ve a problem with an checkbox and wpml.

    I’ve this code, where profile is an checkbox:

    <?php if (get_field('profile') != '') { ?><li><strong><?php _e('Profile:','movedo'); ?></strong> <?php the_field('profile'); ?></li>
    <?php } else {}?>

    I must to translate (in wpml string translation) the values of this checkbox, then i’ve edit the code so:

    <?php if (get_field('profile') != '') { ?><li><strong><?php _e('Profile:','movedo'); ?></strong> <?php _e(get_field('profile')); ?></li>
    <?php } else {}?>

    But the website crash. Array errors etc.
    Where am I doing wrong?

    Many thanks

Viewing 1 post (of 1 total)

The topic ‘Checkbox and wpml’ is closed to new replies.