Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Favorites infavorites:mine
infavorites:1234
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with Search options user 19536

Widgets are configurable elements used to dynamically build sections of a WordPress theme.

0
votes
1answer
hard coding each field to avoid repeating myself. I cant figure out how to save the values tho, because from teh tuts I've looked at for building widgets, the name field has to be $this->get_field_name …
asked Apr 22 '13 by rugbert
3
votes
1answer
In the customizer, whenever I add a new widget (but before I save/publish the changes) I would like to get the number of widgets in that sidebar area. Once the changes have been saved and the … widgets are saved to the DB, I can use the wp_get_sidebars_widgets (called in the init hook, where it registers my widgets) to count all the widgets for each sidebar area, I've taken a look at the …
asked Jan 31 '18 by rugbert
1
vote
2answers
to change it's class based on how many other widgets are in that same sidebar area. So when wp.customize('sidebars_widgets[sidebar-1]').get().length fires, its a little too early to count all the … widgets. So like, I'm thinking I add a widget in the Customizer controls sidebar, then the previewer adds the widget, once the widget is added to the Previewer DOM I was hoping it would emit an event …
asked Feb 7 '18 by rugbert
6
votes
1answer
So I have some widgets that are using some custom jquery on the backend. I can get the widget forms to call the jquery files but only AFTER I've saved the widget and reloaded the page. Is there … anyway to use that jquery as soon as I've dragged it from the "Available Widgets" area to the sidebar area? So in my widget code, in the form function, I have this: function form( $instance …
asked Oct 9 '13 by rugbert
2
votes
2answers
['wp_registered_sidebars']) Array ( [frontpage_widgets] => Array ( [name] => Frontpage Widgets [id] => frontpage_widgets [description … ] => Widgets for the Frontpage Widgetspage [class] => [before_widget] => ... Is there something preventing the widgets from displaying in the admin section? Edit - I seems that the widgets are not being set globally: $wp_registered_widgets is empty …
asked Apr 5 '17 by rugbert