Widget control in Appearance/Widgets
I am trying to create a widget to display ads for Solidarity in stead of ads from google adsense, amazon or any commercial company.
I developed my own webservice and server who will in time have a lot of ngo, in his database, so it can show ads, in a widget, where you simply choose the type of ad (big,small,or just logo) and you click on wordpress categories displayed in a checkbox-tree; so you can select the ads you want, or deselect the ones you don’t want.
I have the widget in Appearance/Widgets, I can add it to sidebar, even select the options I want.
The problem I have it soes not store nor read the options I set, I am a beginner, and following the only example I found using the WP_Widget class, I am not sure how to do that…
There must be some kind of savesettings or readsettings function I need to call to get the data. But from the example that should be $instance… When print_r on $instance it is an array with both the elements I have in my form() but they are empty…
Can any body help me out here? Thanks. Oh, The code of course of the widget:
- The topic ‘Widget control in Appearance/Widgets’ is closed to new replies.