Home › Forums › General Issues › ACF and Widgets › Reply To: ACF and Widgets
You are right and also not right.
This is correct:
“There is no save button.”
This is not true:
There has to be some field to be saved. Otherwise you cant save…
Solution:
Your widget class must implement not only __construct
(and widget(...)
for display), but also the minimum version of method form($instance)
that returns the provided $instance
:
public function form($instance){ return $instance; }
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.