Support » Plugin: Advanced Custom Fields » Custom Field Type – Load Value function

  • Hi, I just started on my first Custom Field Type.

    I need a field where the user inputs A, and from it is generated some data B.
    When the user sees the field, only A is displayed. When the field is fetched with ‘get_field()’, both A and B are returned (or just B).

    I’ve managed to do this by storing it as JSON and using the load_value() function you have provided. This function is however called both when getting the value in the admin-panel, and on my page where it is used. My question is:
    Is there a function where I can specify exactly what is returned to get_field when displayed on a page and for when the user edits the field in the admin-panel? Thanks in advance. /Jeppe

    • This topic was modified 1 month, 3 weeks ago by  jepperask.
    • This topic was modified 1 month, 3 weeks ago by  jepperask.
  • You must be logged in to reply to this topic.