• 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 6 years, 3 months ago by jepperask.
    • This topic was modified 6 years, 3 months ago by jepperask.
  • The topic ‘Custom Field Type – Load Value function’ is closed to new replies.