I am trying to create a new custom widget based off of the AdvancedListWidget so that I can edit “View All Events” without needing to edit core but having some issues.
I have the following:
http://pastebin.com/vRFZ4V9f
This code/widget works if I do this in a page template:
the_widget(‘CustomTribeEventsAdvancedListWidget’, array( ‘limit’ => ‘3’));
However, it does not work properly as a “real widget” in the WP admin. It shows up in the list of widgets and if I drag it to the sidebar change some options (like limit) and hit save it doesn’t “save/remember” what I just changed and “resets” (blank or default values); however, if I try it again it then saves it and remembers it but if I refresh the admin page I see that it somehow changed to use the normal Events list widget instead of the one I created (the name of the widget in the sidebar changes to “Events List Advanced Widget”).
I am fairly new to WP so it could be something really easy.