• Resolved moinalqinna

    (@moinalqinna)


    Hello there, hope everything well at your side?
    I’m using Simple Job Board on my website, I added the form to my careers page and translated it using WPML.

    When someone applies by filling the form on the page, I can see it in the admin dashboard. The “Username” column returns the value that is inside my “First Name” field, example:
    — If the applicant puts “John” inside the “First Name” field, I’ll see “John” in the “Username” column in the admin dashboard.

    Now, when someone fills the form in the translated language page, the “Username” column returns a hyphen instead of the value inside the translated “First Name” field.

    As you can see in the attached images, the translated (Arabic) doesn’t show the value of what was inside the “الإسم الأول” (First Name) field.

    I appreciate your prompt response and support.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author PressTigers

    (@presstigers)

    Hello @moinalqinna,

    We apologize for the inconvenience.

    In your screenshots, we are not getting any hyphen. Also, the name inside the applicant detail page is getting from the English attribute so that is why you are not getting it there. It can only display the text for English language users.

    Regards,

    Thread Starter moinalqinna

    (@moinalqinna)

    Hello @presstigers,

    Thank you for your reply.

    In this attachment I’m sending you now, I highlighted the hyphen that appears instead of the name.

    So just to be sure… is there a way to display the attribute from the Arabic as well, or this can’t be done?

    Also, if you don’t mind, could you tell me what’s the issue? I mean, is it because the plugin is built this way or it’s an issue with WPML specifically?

    Thanks in advance.

    The page I need help with https://imgur.com/a/K3vDf79

    Plugin Author PressTigers

    (@presstigers)

    Hello @moinalqinna,

    Your application listing is customized and it depends upon the customization that you have done.

    Can you please confirm it from your developer? How he is accessing the name of the user? If you are just translating then there should no be the issue of meta keys. Right now we can’t say anything about the issue either its because of SJB or WPML. Your developer might help you there.

    Regards,

    • This reply was modified 5 years, 11 months ago by PressTigers.
    Thread Starter moinalqinna

    (@moinalqinna)

    Dear @presstigers,

    Thank you so much for pointing out the customized listing, it turns out it really was the problem.

    As you can see in the “Admin columns.png” image, I have chosen the “User Name” column to return the value of the “jobapp_first_name” field.

    Now, this is a problem for me because, as you can see in the other 4 images, the field’s “name” and “id” attributes change according to the field name, example:
    — If the field’s name is “First Name” and the translation is “الإسم الأول”, the English field will have a “name” and “id” attributes of “jobapp_first_name”, and the Arabic will have “jobapp_الإسم_الأول”. And since my custom field in the Admin Columns plugin is set to return the value of the “jobapp_first_name” field, it won’t return the Arabic field because its “name” and “id” attributes have changed.

    I hope you could understand my explanation.

    Do you have any suggestions on how I could overcome this issue? I would be very grateful.

    P.S:
    I tried adding more than 1 field for the same column, but that wasn’t doable.

    The page I need help with https://imgur.com/a/d2HBQvU

    Plugin Author PressTigers

    (@presstigers)

    Hello @moinalqinna,

    You can conditionalize it based on the language code. If you are translating it through WPML it might be possible that are providing you the translation flag through which you can run both statements based on the language.

    Please ask your developer to work in this direction. Let us know if we can assist you further.

    Regards,

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Username column doesn’t return translated field value – WPML’ is closed to new replies.