254 posts
  • Sold between 5 000 and 10 000 dollars
  • Bought between 10 and 49 items
  • Has been a member for 3-4 years
  • Exclusive Author
  • United Kingdom
evaske says

Hello,

So I am currently in the process of making a pricebox widget for the SiteOrigins Pagebuilder but have come across an issue. I have a field for features and then a button underneath that says Add Features and when clicked it adds a new field. I therefore am saving all these features in to an array which when being used in the normal theme widget area works perfectly.

The problem is though that SiteOrigins doesn’t seem to show the array value as if it resets it each time. The array is being saved to $instance[‘fields’] because it is outputting on the site but then when I go back to edit the price box through the sitebuilder the field is empty.

Anyone got any ideas on what I can try or is able to help me out by taking a look at my code quickly? I have pastebinned the code below so you can see it :)

http://pastebin.com/ThKe2cMR
254 posts
  • Sold between 5 000 and 10 000 dollars
  • Bought between 10 and 49 items
  • Has been a member for 3-4 years
  • Exclusive Author
  • United Kingdom
evaske says

Slightly modified code:

http://pastebin.com/wM6rCM0h

No one got any idea as to why Page Builder doesn’t want to recall the array of fields even though it is saved?

by
by
by
by
by
by