forms – WPML not displaying translated term within the session data

Question

i have set some radio buttons in a form.
On step 2 of this form (verify their infos before submitting) i retrieve the infos given on step 1 via the session like this :

   <?php
    $salutation = apply_filters( 'wpml_object_id', $session_data['salutation'], 'post', TRUE);
echo _e($salutation, 'child-sponsor-lang');
  ?>

The datas are well passed on the session but instead of displaying the gender translation (Mister, Miss or Family) it returns a “0”

When i check the submission on our system, the data is correct, so i think it’s just a display error on the front end.
Anyone can tell me what i’m doing wrong ?

0
Olivier 3 months 2021-04-29T04:14:49-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse