WordPress.org

Ready to get started?Download WordPress

Forums

Types - Custom Fields and Custom Post Types Management
Custom Fields conditionals with WPML not working (7 posts)

  1. gr0uch0mars
    Member
    Posted 1 year ago #

    When I limit the display of a Custom Field to a certain Term (which is translated using WMPL), it works for that language.

    However, when I switch to other language, as the conditional was set to the previous language, the Custom Field doesn't recognize the conditional and doesn't appear…

    Is this a problem of mine, or Conditionals do not work with WPML?

    WordPress: 3.5.1
    Theme: BuddyPress Default
    Plugins:

    • BuddyPress
    • BuddyPress Multilingual
    • Posts 2 Posts
    • WPML Multilingual CMS

    OS: Mac OS X 10.8.2
    PHP: 5.3.15

    http://wordpress.org/extend/plugins/types/

  2. mbigul
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Gr0uch0mars,

    Hope you are using latest version of Types and WPML.

    Can you please share your condition logic and sample code.

    [ Signature moderated. ]

  3. gr0uch0mars
    Member
    Posted 1 year ago #

    WordPress: 3.5.1
    Theme: BuddyPress Default
    Plugins:

    • BuddyPress (1.7 beta 2)
    • BuddyPress Multilingual (1.4.2)
    • Posts 2 Posts: (1.5.1)
    • Types (1.2)
    • WPML Multilingual CMS (2.7.1)
    • WPML String Translation (1.6.1)

    The case: I want to store people and company names in a Custom Type, and to add a Conditional field depending if it is a people (then, "birth date"), or a company (no birth, but "begin date"). But when I edit the translation, the conditional field does NOT appear…

    Main steps to reproduce the issue:

    1. I have a English+Spanish website
    2. I created a Custom Type ("People") and Custom Taxonomies ("People category")
    3. Populated "People category" taxonomy with: "Person" or "Company".
    4. I translated Type and Taxonomy with WPML String translation. Do appear correctly.
    5. I created a Custom date Field ("Birth date"): Post type = "People" + Terms = "Person".
    6. I created a Custom date Field ("Begin date"): Post type = "Company" + Terms = "Company".
    7. In English admin language, I populated some "People" (of each category). The conditional Custom Fields appear correctly.
    8. When I edit the translation (the Spanish one), the corresponding translated taxonomy ("People category") appears checked correctly, but the Conditional Custom Field ("Birth date" or "Begin date") does NOT appear.

    It's like the condition refers to the English language. Although the UI displays the translation, as that post does not have an English taxonomy, the condition does not apply…

    I hope you can replicate this issue with these steps.

    Thank you, mbigul.

  4. mbigul
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Gr0uch0mars,

    Please try the same with Types 1.2.1. If the issue exist please send me your DB to my mail bigul.m@wpml.org for debugging it.

    [ Signature moderated. ]

  5. gr0uch0mars
    Member
    Posted 1 year ago #

    The issue still exists. I sent you a copy of my DB.

  6. mbigul
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Miguel,

    I received your mail. We will track it as soon as possible and update you. Please wait.

    [ Signature moderated. ]

  7. mbigul
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Miguel,

    I have found the issue. It requires some codes fixes. Please wait, I will update you soon.

    [ Signature moderated. ]

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.