[wp-trac] [WordPress Trac] #34995: WP_Widget::widget not called

WordPress Trac noreply at wordpress.org
Fri Dec 11 01:37:51 UTC 2015


#34995: WP_Widget::widget not called
-------------------------------------+------------------------------
 Reporter:  btwatts                  |       Owner:
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  Awaiting Review
Component:  Widgets                  |     Version:  4.4
 Severity:  normal                   |  Resolution:
 Keywords:  close reporter-feedback  |     Focuses:
-------------------------------------+------------------------------
Changes (by westonruter):

 * keywords:   => close reporter-feedback


Comment:

 @btwatts Hi there.

 I just tried your plugin in 4.4 and I saw the widget load as expected with
 the `widget` method being called. Did you add the widget to the “Top Left”
 widget area (sidebar) or to an existing widget area in your theme? Just
 calling `register_sidebar()` is not enough for the widget area to appear
 on your site. You have to add the required `dynamic_sidebar()` call in the
 template as well.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/34995#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list