Viewing 1 reply thread
  • Author
    Posts
    • #4927
      ndmurph04
      Member

      Howdy – with the upgrade to 0.9.9.6, the change in the way add more fields are stored has caused the code in several of our themes accessing that data to be broken. Is there any sort of polyfill available (maybe a get_option hook) that can convert the data structure back to its legacy format? Ideally it would be something that could be enabled on a per-theme or per-plugin basis. That would really help bridge the gap while we go through the process of upgrading. If nothing like that exists, could you give a pointer in the right direction on how to get the list of add more fields? With that, I don’t mind taking a crack at building something.

    • #4938
      Steve
      Keymaster

      @ndmurph04– Sorry this is causing you issues. The Add-More array change is big, and once you start working with it, you will love it. You can easily just pull the field and loop through it like a normal array.

      Without seeing your code it’s hard to debug, but my guess is you should remove any [0] keys you have. So if you are looking for this in your code: $my_field[0], just change it to this: $my_field.

      That alone has helped many users.

      Let us know if you still need help.

Viewing 1 reply thread
  • You must be logged in to reply to this topic.