Tagged Questions
0
votes
1answer
30 views
Options page for widget
I started developing a plugin which only required a few options. But over time the number of settings grew, and I want to move most of them to a separate page. I've seen quite a few tutorials about ...
0
votes
0answers
11 views
Reuse form function of widget in an option page
Can I reuse the form function of a widget in an option page to use it to store default values for the widget and its shortcode?
2
votes
1answer
79 views
How to store widget fields data as an array?
I am creating a widget, it needs to store about 10 IDs. Right now I'm using following field method to store each of the ID in a separate field. It stores data of each field in a separately in the ...
0
votes
1answer
72 views
Saving widget options from class method
I have a widget class (derived from WP_Widget) that has a method (called via ajax) to update part of its options(the elements order) without the user to click "Save", to set the handler I do from the ...
0
votes
2answers
201 views
In widget, the value of select field doesn't get updated, changes after saving
I'm building a simple widget which will allow the user to select a post among a list of posts.
For some reason, when I select an option, I believe it actually gets selected but the option doesn't ...
2
votes
2answers
191 views
Separate backend “Widgets” page for each language
Im currently trying to make my backend work with multiple languages.
Im using qTranslate as my translation plugin.
So far I have accomplished a custom option page with multi-language support. When ...
0
votes
1answer
77 views
Widget options - where to put them?
I have a widget which I want to add a couple of options. The options are effectively 'global' for the widget - username and password details to a secured web service.
So in effect, wherever the ...
10
votes
1answer
300 views
Limit the number of inactive widgets
I'm trying to restrict the number of widgets from the "wp_inactive_widgets" sidebar to maximum 10, because the widgets admin page is incredibly slow:
add_filter('pre_update_option_sidebars_widgets', ...
0
votes
1answer
541 views
SELECT field options disappear when saving widget
I'm having an interesting problem that I can't seem to solve.
While creating a widget, I have created a select field with options that can be chosen on the widget screen. It all works perfectly fine, ...
1
vote
2answers
396 views
Changing widget options via the functions.php when there are no hooks
The problem: to change a widget's options with a custom function in functions.php, when there are no useful hooks, and where there are multiple occurrences of the same widget (multiwidget).
This ...
1
vote
2answers
450 views
get_option returns undesired blank instance of a widget
I am presently trying to call the fields of a custom widget using get_option and loop through the array created from the get_option() call. The issue is that it is outputting a blank one at the end, ...
3
votes
4answers
2k views
Using widget options 'outside' the widget
I want to save some parameters in the widget options which are then passed into another page.
The widget is a form which calls a webservice.
The options I want to pass are the authentication for the ...